Alerting

How to set an alert action to only fire when a condition has been met over multiple 5 minute intervals?

tri2243
New Member

I have an alert that is running on 5 minute cron schedule looking for a number of results. I am looking to set up the action or the search itself to only fire when that condition has been met over multiple 5 minute intervals. The number of results is less important then the sustained occurrence, so just raising the number of results in the trigger condition wouldn’t help.

Example today, If xx is greater then 10 in 5 minutes, trigger an alert.
Ideally, If xx is greater then 10 in 5 minutes for 4 intervals in a row, trigger an alert.

0 Karma

sundareshr
Legend

Try this. Run this every 25mins (not 5 mins) and alert only if value of alert = 5

index=_internal earliest=-25m@m | timechart partial=f span=5m count | eval alert=0 | foreach count [eval alert=if(count<500, 0, 1)] | addcoltotals | where isnull(_time)
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 ...