Splunk Enterprise Security

How to create an alert if index have no data in the last 24 hours?

mcohen13
Loves-to-Learn

I want to create alert to check on all indexes event count and alert the list of all indexes that have no events in the last 24 hours

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Search for the following and have the alert trigger if the number of events is not zero.

| tstats count where index=* by index | where count = 0
---
If this reply helps you, Karma would be appreciated.
0 Karma

evolart
Engager

I'm trying to build a similar alert and when I try below for any time frame up to 24 hours I end up with "No results found". I have 4 indices all showing no events received in over 4 hours when looking at Settings > Indexes.

| tstats count where index=* by index | where count = 0

 

Tags (3)
0 Karma

evolart
Engager
0 Karma
Get Updates on the Splunk Community!

Developer Spotlight with Brett Adams

In our third Spotlight feature, we're excited to shine a light on Brett—a Splunk consultant, innovative ...

Index This | What can you do to make 55,555 equal 500?

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

Say goodbye to manually analyzing phishing and malware threats with Splunk Attack ...

In today’s evolving threat landscape, we understand you’re constantly bombarded with phishing and malware ...