- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
06-15-2023 10:28 AM
Hello dear community,
I want to share with you my little XQL script which can identify and alert connected Clients which have no assigned endpoint group.
This can happen:
- Cortex is installed, but the endpoint name does not match the defined criteria
- Endpoint name is changed, does not match the defined criteria
dataset = endpoints
| filter group_names != "*"
| filter endpoint_status ~= "CONNECTED" and endpoint_status !~= "DISCONNECTED"
BR
Rob
06-16-2023 01:52 AM
Good work there, @RFeyertag !
A few observations:
I'd recommend changing the operator in 3rd line to not do regex as the values can always be an exact match (CONNECTED/DISCONNECTED).
So something like this :
| filter endpoint_status= ENUM.CONNECTED or endpoint_status = ENUM.DISCONNECTED
or
| filter endpoint_status in (ENUM.CONNECTED , ENUM.DISCONNECTED )
will do too.
06-16-2023 01:52 AM
Good work there, @RFeyertag !
A few observations:
I'd recommend changing the operator in 3rd line to not do regex as the values can always be an exact match (CONNECTED/DISCONNECTED).
So something like this :
| filter endpoint_status= ENUM.CONNECTED or endpoint_status = ENUM.DISCONNECTED
or
| filter endpoint_status in (ENUM.CONNECTED , ENUM.DISCONNECTED )
will do too.
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!