Logs not visible - XQL Query

Showing results for 
Show  only  | Search instead for 
Did you mean: 
Please sign in to see details of an important advisory in our Customer Advisories area.

Logs not visible - XQL Query

L2 Linker



Currently we are trying to create a query that gives us the result if the user has executed Sudo command and then right after executed the cd command. Is it possible to write a query that searches for commands executed one after the other?


During this process we observed that cortex is not giving us logs for cd command in any of the systems. why is it so?



L3 Networker

Hi @Aiman_Fathima 


You can use below query. You should have enough telemetry data for this task, if you enabled XDR Pro on the endpoint. 


dataset = xdr_data
| filter os_actor_process_image_path = "/usr/bin/sudo" and os_actor_process_command_line contains "cd"




  • 1 replies
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!