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!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...