Incident Management - Alerts
Overview
Get a list of all or filtered alerts. The alerts listed are what remains after alert exclusions are applied by Cortex XDR.
Response is concatenated using AND condition (OR is not supported).
Maximum result set size is 100.
Offset is the zero-based number of alerts from the start of the result set. The response indicates whether an PAN NGFW type alert contains a PCAP triggering packet.
Use the Retrieve PCAP Packet API to retrieve a list of alert IDs and their associated PCAP data. Required license: Cortex XDR Prevent, Cortex XDR Pro per Endpoint, or Cortex XDR Pro per GB.
Configuration
Parameters
Name - domain
Value - CortexXdrDomain
Secrets


After entering the required parameters and secrets, you can choose to manually enter the Cortex incident Management fields, or simply paste the given YAML:
Toggle this ON to enable a free text field where you can paste your Cortex XDR API YAML.
withTemporalWindow: true
temporalWindow:
duration: 5m
offset: 5m
tz: UTC
format: Epoch
withAuthentication: false
withEnumerationPhase: false
collectionPhase:
paginationType: "fromTo"
limit: 100
request:
method: "POST"
url: "https://${parameters.CortexXdrDomain}/public_api/v1/alerts/get_alerts"
headers:
- name: Accept
value: "application/json"
- name: Content-Type
value: "application/json"
- name: Authorization
value: "${secrets.CortexXdrAuthorization}"
- name: x-xdr-auth-id
value: ${secrets.CortexXdrAuthId}
bodyType: raw
bodyRaw: |
{
"request_data": {
"search_from": ${pagination.from},
"search_to": ${pagination.to},
"filters": [
{
"field": "creation_time",
"operator": "gte",
"value": ${temporalWindow.from}
},
{
"field": "creation_time",
"operator": "lte",
"value": ${temporalWindow.to}
}
]
}
}
output:
select: ".reply.alerts"
map: "."
outputMode: "element"
Temporal Window
Toggle ON to add a temporal window for events. This repeatedly shifts the time window over which data is collected.

Authentication Phase
Off
Enumeration Phase
Off
Collection Phase
Pagination Type* -
fromToZero index* - false
Limit* - 100
Request
Response Type* - JSON
Method* -
POSTURL* -
https://${parameters.CortexXdrDomain}/public_api/v1/alerts/get_alertsHeaders
Name - Accept
Value -
application/jsonName - Content-Type
Value -
application/jsonName - Authorization
Value -
${secrets.CortexXdrAuthorization}Name - x-xdr-auth-id
Value -
${secrets.CortexXdrAuthId}
Body type* - raw
Body content* -
{ "request_data": { "search_from": ${pagination.from}, "search_to": ${pagination.to}, "filters": [ { "field": "creation_time", "operator": "gte", "value": ${temporalWindow.from} }, { "field": "creation_time", "operator": "lte", "value": ${temporalWindow.to} } ] } }
Output
Select -
.reply.alertsMap -
.Output Mode -
element

This HTTP Pull Listener now uses the data export API to extract events.
Click Create labels to move on to the next step and define the required Labels if needed.
Last updated
Was this helpful?

