- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Enhanced Security Measures in Place: To ensure a safer experience, we’ve implemented additional, temporary security measures for all users.
04-29-2024 12:22 AM
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
05-02-2024 07:29 PM
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.
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!