Splunk Search

how to clean the splunk alarm?

jenniferhao
Explorer

Hello, expert,

I set up an alarm as following, and run it as cronjob by 5mins. Do you have any idea on clean the alarm only after the alarm occurs to avoid sending alert every 5mins in normal situation?

| eval alarm = if(value >= alarmTheashold,1,0)        //if alarm==1, then tag=1
| eval clear = if(value <  alarmTheashold,1,0)         // clear=1 when value<alarmTheashold AND tag==1

 

 

 

Labels (1)
0 Karma

jenniferhao
Explorer

Sorry, maybe I'm not descript clearly. The issue is if alarm happens in 5 mins before, then I need to test the threshold. If condition match then sent a clear alarm out, otherwise, I don't need to do anything.  

0 Karma
Get Updates on the Splunk Community!

Splunk Forwarders and Forced Time Based Load Balancing

Splunk customers use universal forwarders to collect and send data to Splunk. A universal forwarder can send ...

NEW! Log Views in Splunk Observability Dashboards Gives Context From a Single Page

Today, Splunk Observability releases log views, a new feature for users to add their logs data from Splunk Log ...

Last Chance to Submit Your Paper For BSides Splunk - Deadline is August 12th!

Hello everyone! Don't wait to submit - The deadline is August 12th! We have truly missed the community so ...