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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...