Skip to content

Commit fec7445

Browse files
yedidyacohenpaloShirleyDenkbergjbabazadeh
authored
Jamf computer fetch assets and refactored (#38336)
* refactored and computer fetch assets firs version * added logs and improve get_events while loop * tests updated and more * dataset name added to description * mypy fixes and rn * docs update * tests add_fields_to_events function * rn with bc note * Update Packs/JamfProtect/ReleaseNotes/1_2_0.md Co-authored-by: ShirleyDenkberg <[email protected]> * Update Packs/JamfProtect/Integrations/JamfProtectEventCollector/README.md Co-authored-by: ShirleyDenkberg <[email protected]> * Update Packs/JamfProtect/Integrations/JamfProtectEventCollector/JamfProtectEventCollector_description.md Co-authored-by: ShirleyDenkberg <[email protected]> * Update Packs/JamfProtect/Integrations/JamfProtectEventCollector/JamfProtectEventCollector.yml Co-authored-by: ShirleyDenkberg <[email protected]> * Update Packs/JamfProtect/Integrations/JamfProtectEventCollector/README.md Co-authored-by: JudithB <[email protected]> * Update Packs/JamfProtect/Integrations/JamfProtectEventCollector/JamfProtectEventCollector.py Co-authored-by: JudithB <[email protected]> * Update Packs/JamfProtect/Integrations/JamfProtectEventCollector/JamfProtectEventCollector.py Co-authored-by: JudithB <[email protected]> * updated test module, and added fetch assets command, and tests for it * updated rn note * sections added * log type update to computers * removed should push events parameter in fetch assets command * Update Packs/JamfProtect/ReleaseNotes/1_2_0.md Co-authored-by: JudithB <[email protected]> --------- Co-authored-by: ShirleyDenkberg <[email protected]> Co-authored-by: JudithB <[email protected]>
1 parent cc16724 commit fec7445

File tree

8 files changed

+589
-608
lines changed

8 files changed

+589
-608
lines changed

Packs/JamfProtect/Integrations/JamfProtectEventCollector/JamfProtectEventCollector.py

Lines changed: 385 additions & 490 deletions
Large diffs are not rendered by default.

Packs/JamfProtect/Integrations/JamfProtectEventCollector/JamfProtectEventCollector.yml

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,23 +48,25 @@ configuration:
4848
type: 0
4949
advanced: true
5050
section: Collect
51-
- additionalinfo: Maximum number of computer events to fetch at a time.
52-
defaultvalue: '500'
53-
display: Max computer events per fetch
54-
name: max_fetch_computer
55-
required: false
56-
type: 0
51+
- additionalinfo: The fetch interval. It is recommended to set it to 12 hours. The minimum interval is 1 hour.
52+
defaultvalue: 720
53+
display: Fetch Computer Assets Interval
54+
name: assetsFetchInterval
55+
type: 19
56+
section: Collect
5757
advanced: true
58+
required: false
59+
- display: Fetch Events
60+
name: isFetchEvents
61+
type: 8
62+
required: false
5863
section: Collect
59-
- display: Fetch all computers
60-
name: fetch_all_computers
61-
defaultvalue: "false"
64+
- display: Fetch Assets
65+
name: isFetchAssets
6266
type: 8
6367
required: false
64-
advanced: true
6568
section: Collect
66-
additionalinfo: When set to true, retrieves all available computers during the initial fetch.
67-
description: Use this integration to fetch audit logs, alerts and computer events from Jamf Protect as events in Cortex XSIAM.
69+
description: Use this integration to fetch audit logs events, alerts events and computer assets from Jamf Protect to Cortex XSIAM.
6870
display: Jamf Protect Event Collector
6971
name: Jamf Protect Event Collector
7072
script:
@@ -87,11 +89,18 @@ script:
8789
required: false
8890
description: Gets events from Jamf Protect.
8991
name: jamf-protect-get-events
92+
- arguments:
93+
- description: The number of computer assets to return.
94+
name: limit
95+
defaultValue: 10
96+
description: Gets computer assets from Jamf Protect.
97+
name: jamf-protect-get-computer-assets
9098
runonce: false
9199
script: "-"
92100
type: python
93101
subtype: python3
94102
isfetchevents: true
103+
isfetchassets: true
95104
dockerimage: demisto/python3:3.11.10.116949
96105
marketplaces:
97106
- marketplacev2

Packs/JamfProtect/Integrations/JamfProtectEventCollector/JamfProtectEventCollector_description.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
_____
1+
22
## Jamf Protect Event Collector
3-
_____
4-
Use this integration to fetch audit logs, alerts and computer events from Jamf Protect as events in Cortex XSIAM.
5-
_____
3+
4+
Use this integration to fetch audit logs, alerts events and computer assets from Jamf Protect to Cortex XSIAM.
5+
6+
To fetch computer assets, enable the *Fetch assets and vulnerabilities* option. To retrieve audit logs and alert events, enable the *Fetch events*option.
7+
8+
Computer assets dataset name: **jamf_protect_computers_raw**
9+
Events dataset name: **jamf_protect_raw**
10+
611
## Creating an API Client in Jamf Protect
712
Before you configure the integration, retrieve the API Client and Password from your Jamf Protect environment:
813
1. In Jamf Protect, click **Administrative** > **API Clients**.

0 commit comments

Comments
 (0)