Splunk Search

One alert but two different timings based on the output of the first alert

prettysunshinez
Explorer

Hi,

I need your help in knowing if it is possible to have an alert that triggers at 1 PM everyday and if the search result is zero,the same alert should be triggered at 4PM.But if the search result is not zero,then the alert at 4PM shouldnt run.

Thanks in advance 

Labels (1)
0 Karma
1 Solution

s2_splunk
Splunk Employee
Splunk Employee

An alert triggers based on the conditions in an alerting search. You could create two distinct searches, where the 1pm stores a flag (1pmResults=true/false) in a lookup file and utilize that lookup file to determine whether the 4pm search is meeting alert conditions. The 4pm search will still run, but doesn't necessarily have to alert. 

View solution in original post

0 Karma

s2_splunk
Splunk Employee
Splunk Employee

An alert triggers based on the conditions in an alerting search. You could create two distinct searches, where the 1pm stores a flag (1pmResults=true/false) in a lookup file and utilize that lookup file to determine whether the 4pm search is meeting alert conditions. The 4pm search will still run, but doesn't necessarily have to alert. 

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