XQL Query - Union between Alerts and Incident datasets

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

XQL Query - Union between Alerts and Incident datasets

L1 Bithead

Hi

 

I want to write an XQL query wherein i will be able to get both details of incident and Alerts in one table.

I want to correlate Incident ID and Description with the tables found in Alert dataset like CGO, Initiated by, Action process etc

 

1 REPLY 1

L4 Transporter

Hello @meanmach 

 

Thanks for reaching out on LiveCommunity.

You can achieve this using "join" stage which will combine data from both datasets. I have written an example query which you can modify according to your use case.

dataset=incidents
| fields incident_id, description as IncidentDesc
| join (dataset = alerts | fields incident_id , cgo_name , initiated_by , action_process_instance_id ) as abc abc.incident_id = incident_id
| fields incident_id , IncidentDesc , cgo_name , initiated_by , action_process_instance_id

 

Reference for join stage- https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-XQL-Language-Reference/Join

 

Please click Accept as Solution to acknowledge that the answer to your question has been provided.

  • 876 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!