Incident Management - Incidents Extradata
Overview
Get the extradata associated to all the incidents within a time range defined by the time window.
The response is concatenated using AND condition (OR is not supported).
The maximum result set size is >100.
Offset is the zero-based number of incidents from the start of the result set.
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 multi alerts YAML.
withTemporalWindow: true
temporalWindow:
duration: 5m
offset: 0
tz: UTC
format: Epoch
withAuthentication: false
withEnumerationPhase: true
enumerationPhase:
paginationType: "fromTo"
limit: 100
request:
responseType: json
method: "POST"
url: "https://${parameters.CortexXdrDomain}/public_api/v1/incidents/get_incidents"
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}000
},
{
"field": "creation_time",
"operator": "lte",
"value": ${temporalWindow.to}000
}
]
}
}
output:
select: '.reply.incidents'
map: "."
outputMode: element
collectionPhase:
variables:
- source: input
name: incident_id
expression: ".incident_id"
default: "0"
paginationType: none
request:
responseType: json
method: "POST"
url: "https://${parameters.CortexXdrDomain}/public_api/v1/incidents/get_incident_extra_data"
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":{
"incident_id":"${inputs.incident_id}",
"alerts_limit":100
}
}
output:
select: ".reply"
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
Pagination Type* -
fromToZero index* - false
Limit* - 100
Request
Response Type* - JSON
Method* -
POSTURL* -
https://${parameters.CortexXdrDomain}/public_api/v1/incidents/get_incidentsHeaders
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}000 }, { "field": "creation_time", "operator": "lte", "value": ${temporalWindow.to}000 } ] } }
Output
Select -
.reply.incidentsMap -
.Output Mode -
element
Collection Phase
Source -
inputName -
incident_idExpression -
.incident_idFormat -
JSONPagination Type* -
NoneRequest
Response Type* - JSON
Method* -
POSTURL* -
https://${parameters.CortexXdrDomain}/public_api/v1/incidents/get_incident_extra_dataHeaders
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":{ "incident_id":"${inputs.incident_id}", "alerts_limit":100 } }
Output
Select -
.reply
Map -
.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?

