Splunk Search

How to implement Alerting the absence of events?

bosseres
Contributor

Hello, team!

I need your help with my search. 

I have a search which collects the list of ip-addresses, and next I need to check if there is event in other index with this ip-address. if there is a corresponding event, it's okay, if not - alert. How to implement it better?

Labels (5)
0 Karma

nadlurinadluri
Communicator

Something like below should work - 

index=secondsearchindex sourcetype=sourcetype 
    [ search index=firstsearchquery_withIPaddresses 
    | stats c by ipaddress
    | table ipaddress]


You can schedule an alert if you get 0 results from the above.  
For reference - https://docs.splunk.com/Documentation/Splunk/9.0.0/Search/Aboutsubsearches

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Better than what?  What implementation do you have now?

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...