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 (4)
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!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...