diff --git a/.github/workflows/pr-appinspect.yml b/.github/workflows/pr-appinspect.yml index 2333e8c2..76593d03 100644 --- a/.github/workflows/pr-appinspect.yml +++ b/.github/workflows/pr-appinspect.yml @@ -8,7 +8,7 @@ on: jobs: appinspect-addon: name: AppInspect (Add-on) - runs-on: ubuntu-20.04 + runs-on: ubuntu-20.04 # Remove write permissions permissions: contents: read diff --git a/Splunk_TA_paloalto/bin/input_module_cortex_xdr.py b/Splunk_TA_paloalto/bin/input_module_cortex_xdr.py index 756b81c1..f9ce23ea 100644 --- a/Splunk_TA_paloalto/bin/input_module_cortex_xdr.py +++ b/Splunk_TA_paloalto/bin/input_module_cortex_xdr.py @@ -70,14 +70,19 @@ def fetch_xdr_incidents(helper, client, mod_time): "value": mod_time, } ) + try: + incidents = client.get_incidents( + limit=50, + sort_field="modification_time", + sort_order="asc", + filters=filters, + ) + helper.log_info("Message: XDR API Returned Successfully") + return incidents + except Exception as e: + message = "Message: %s"%e + helper.log_error(message) - incidents = client.get_incidents( - limit=50, - sort_field="modification_time", - sort_order="asc", - filters=filters, - ) - return incidents def fetch_incident_details(helper, client, incident): try: @@ -120,7 +125,7 @@ def handle_incidents(helper, ew, incidents, get_details, base_url): sourcetype='pan:xdr_incident', data=json.dumps(incident)) ew.write_event(event) - helper.log_debug(f"Got {len(incidents)} results") + helper.log_info(f"Got {len(incidents)} results") helper.log_debug( "Got the following incident IDs: " + " ".join([str(y) for y in incidents]) @@ -178,5 +183,5 @@ def collect_events(helper, ew): if incidents: handle_incidents(helper, ew, incidents, get_details, base_url) else: - helper.log_debug("No Incidents") + helper.log_info("No Incidents") diff --git a/Splunk_TA_paloalto/default/data/ui/nav/default.xml b/Splunk_TA_paloalto/default/data/ui/nav/default.xml index 3cbb8959..cc70e344 100644 --- a/Splunk_TA_paloalto/default/data/ui/nav/default.xml +++ b/Splunk_TA_paloalto/default/data/ui/nav/default.xml @@ -1,5 +1,6 @@ \ No newline at end of file diff --git a/Splunk_TA_paloalto/default/data/ui/views/health.xml b/Splunk_TA_paloalto/default/data/ui/views/health.xml new file mode 100644 index 00000000..b8a7c253 --- /dev/null +++ b/Splunk_TA_paloalto/default/data/ui/views/health.xml @@ -0,0 +1,345 @@ +
\ No newline at end of file diff --git a/demo/README.md b/demo/README.md index 9f393c88..eba312b4 100644 --- a/demo/README.md +++ b/demo/README.md @@ -57,7 +57,7 @@ After installation, the server is running. ## License -You can run the demo unlicnesed or with a license. +You can run the demo unlicensed or with a license. **Unlicensed**