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!

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...