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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...