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

Labels (1)
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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...