Need help sorting my applications and endpoint names using an XQL query

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

Need help sorting my applications and endpoint names using an XQL query

L1 Bithead

I want to sort my endpoint based on all application, like which application are using which specific endpoint? using an XQL query.
Cortex XDR #xql_query

 

5 REPLIES 5

L4 Transporter

Hello @Prashanta ,

 

Thank you for writing to live community.

 

You can use below query as a sample and modify it as per your requirement:

preset = host_inventory_applications

|fields Vendor, application_name, version, manager_name, endpoint_name

 

if you need the application on the number of endpoints, use below:

preset = host_inventory_applications

|fields Vendor, application_name, version, manager_name, endpoint_name
|comp count(endpoint_name) as counter by vendor, application_name, version, manager_name
|sort desc counter

 

Hope this helps!

Please mark the response as "Accept as Solution" if it answers your query.

 

Regards

Ashutosh Patil

L1 Bithead

Hello @aspatil 
Thanks for the reply, If I add with this parameter OS type, OS version ...? how can i do that? like need windows information. 


preset = host_inventory_applications

|fields Vendor, application_name, version, manager_name, endpoint_name,

L4 Transporter

Hello @Prashanta ,

 

You can use below and play around it:

preset = host_inventory_applications
|fields Vendor, application_name, version, manager_name, endpoint_name
|join (preset = host_inventory_endpoints | fields endpoint_name , operating_system, os_type, endpoint_type )
as ep ep.endpoint_name = endpoint_name

 

 

Hope this helps!

Please mark the response as "Accept as Solution" if it answers your query.

 

Ashutosh Patil

Hello @aspatil 
Thanks for the reply, I need the OS_version also like, Windows 10,  10.0.10240
i can't get the os version with query, but it exists on host inventory > application > operating system > os 
version.

 

 

Regards. 
prashanta 

Hello @Prashanta ,

 

preset = host_inventory_applications
|fields Vendor, application_name, version, manager_name, endpoint_name
|join(dataset = endpoints | fields endpoint_name ,operating_system, os_version, platform, endpoint_type)
as ep ep.endpoint_name = endpoint_name

 

Hope this helps!

Please mark the response as "Accept as Solution" if it answers your query.

 

Ashutosh Patil
  • 657 Views
  • 5 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!