Splunk Enterprise

Help in complex Search Query alert

Unige2021
Loves-to-Learn

The context is Splunk is collecting data from a radar device.

Basically what it gets is the Latitude, Longitude and Id of nearby objects in a meters radius range.

The events are in JSON format and the following is an exemple:

 

 

{
  "Id": 1,
  "Latitude": x,
  "Longitude": y
}

 

 

Splunk must trigger an alert when an object which previously was at position y, now is at position z iff delta z-y is too big.

I know the alert can be triggered if the search result returns at least 1 row, but I don't know how to write this query because too complex.

Is it possibile to make this query? How can I do this?
Thank you in advance!

Labels (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

The JSON object only has 3 elements - of two events for the same id, how  do you determine which was the previous. Given two events for the same id, how do you determine the diff between two events especially since these look like locations on a sphere?

0 Karma

Unige2021
Loves-to-Learn

Sorry you are right, I forgot to specify the JSON includes the timestamp too.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...