Clients/Server do not have assigned endpoint group ALERT / CORRELATION / XQL

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

Clients/Server do not have assigned endpoint group ALERT / CORRELATION / XQL

L4 Transporter

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"

RFeyertag_1-1686849957699.png

 

RFeyertag_0-1686849683794.png

BR

 

Rob

 

1 accepted solution

Accepted Solutions

L5 Sessionator

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.

View solution in original post

2 REPLIES 2

L5 Sessionator

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.

Thank you @bbarmanroy,

 

with your recommendation it works much better!

 

BR

 

Rob 

  • 1 accepted solution
  • 1218 Views
  • 2 replies
  • 1 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!