Alerting

Alert when there is a peak of activity

ctaf
Contributor

Hello,

I am currently setting up some graphs and I was wondering if there is a simple and flexible way to generate an alert when there is a unusual peak in the graph.

I know I can set up an alert if X events have been found but this is not flexible. Is there a way that Splunk can learn that, for example, on Mondays, there are more events generated so the alert limit should be higher ?

Thank you !

0 Karma
1 Solution

javiergn
Super Champion

The way I approached this in the past was using a summary index (report acceleration might work too):

  • Summarise your data hourly, daily or whatever range you find more suitable for your needs
  • Apply the relevant statistical functions to your summary data (doing the same against non-summarised data could take ages)
  • Compare your previous results with your current ones in order to trigger the alerts you want

I don't have access to my old Splunk instance at the moment so I can't really paste any code or screenshots.

Hope that helps.

Thanks,
J

View solution in original post

0 Karma

woodcock
Esteemed Legend

You could use timewrap app to compare week-over-week and do a precentage variation that is constant:

https://splunkbase.splunk.com/app/1645/

ctaf
Contributor

Wow, this looks very nice. If you have any other command to compare charts over time, do not hesitate to share it.

0 Karma

javiergn
Super Champion

The way I approached this in the past was using a summary index (report acceleration might work too):

  • Summarise your data hourly, daily or whatever range you find more suitable for your needs
  • Apply the relevant statistical functions to your summary data (doing the same against non-summarised data could take ages)
  • Compare your previous results with your current ones in order to trigger the alerts you want

I don't have access to my old Splunk instance at the moment so I can't really paste any code or screenshots.

Hope that helps.

Thanks,
J

0 Karma

jeffland
SplunkTrust
SplunkTrust

You could also check out the Machine Learning App which features one such use cases explicitly. Check it out if you're interested, I can really recommend it!

0 Karma

ctaf
Contributor

Thank you. I will check out this app 🙂

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...