Alerting

How to set up an alert based on a threshold which is dynamically updated based on the previous day's maximum value? Thanks!!

bhavik175
New Member

I am trying to create an alert to monitor counts on a per hour basis. I would like to set up a dynamic threshold based on the previous day's maximum value + 20% of the max value. Is there a way we can do this in splunk?

0 Karma

woodcock
Esteemed Legend

Try this:

MySearchStr earliest=-1d@d latest=0d@d | stats max(MyField) AS yesterdayMax | map search="MySearchStr | where MyField>$yesterdayMax$"

0 Karma

HattrickNZ
Motivator

If i run this will I get a value fof zero or 1 in the visualisation tab?
Is $yesterdayMax$ a variable from the 1st part of the search?

I tried to runt it a couple of times, different ways and I was getting no results found

0 Karma

somesoni2
SplunkTrust
SplunkTrust

You want to check the count every hour and compare the count for current hour with 1.2 times max count per hour from yesterday?

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 ...