Alerting

Alert when No data received on index more than 24 hours

DanWilkinson
Engager

Good Morning, I am trying to create an alert to indicate that data has stopped flowing to a specific index and host after 24 hours, once created, the alert would continuously trigger. but only alerted after a new occurrence of data was received.

My current settings for my alert are as follows:

-------------------------------

Settings

Alert
Safelnk DOM East - No Data > 24 hours
Description
 
Search
 
| metadata type=hosts index="index Hidden" |
    where host="Hostname_Hidden" | eval age=abs((recentTime-now())) | where age
    >86400| table host recentTime age | convert ctime(recentTime)
 
Scheduled:
run everyday
At:
10:00
Expires:
999
hour(s)

Trigger Conditions

Trigger alert when
Number of Results
is Greater than: 0
 
Trigger:
Once For each result

Throttle:
 
Suppress results containing field value:
 
Suppress triggering for:
12
hour(s)

Trigger Actions:

When triggered:
Email is sent
-------------------------------
data that is sent when triggered:

host                                                  recentTime                                    age
"Hostname_Hidden"                11/08/2021                                  386
 
Labels (3)
0 Karma

bowesmana
SplunkTrust
SplunkTrust

Take a look at the TrackMe app

https://splunkbase.splunk.com/app/4621/

It has some neat features for this type of alerting and the throttling/suppression may work in your case.

An alternative would be to store the alerted state in a lookup, which you then check as part of your search each time the alert runs which then will not alert again until the state shows no alert active. You could have a saved search that clears the state when data is seen.

 

0 Karma
Get Updates on the Splunk Community!

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 ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...