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 

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!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...