Splunk Search

How to trigger an alert if any value in a table crosses a threshold and include details about the corresponding field in the email?

pashernx
Explorer

I want to create an alert based on a table like below:

Field| Value
A| 10
B| 25
C| 40
D| 30
E| 45
F| 15

The alert should be triggered when any of the field values cross a threshold (say 50). I would like to have the details about the field that caused the alert on the email. Is there a possibility to do this in a single alert in Splunk or should I created multiple alerts for each row?

Thanks,

0 Karma
1 Solution

woodcock
Esteemed Legend

You can use this search

... | stats max(Value) AS MaxValue BY Field | where MaxValue > 50

Then have the alert email and "include result inline" and trigger when numresults>0

View solution in original post

woodcock
Esteemed Legend

You can use this search

... | stats max(Value) AS MaxValue BY Field | where MaxValue > 50

Then have the alert email and "include result inline" and trigger when numresults>0

pashernx
Explorer

Thanks it worked.

0 Karma
Get Updates on the Splunk Community!

Build Scalable Security While Moving to Cloud - Guide From Clayton Homes

 Clayton Homes faced the increased challenge of strengthening their security posture as they went through ...

Mission Control | Explore the latest release of Splunk Mission Control (2.3)

We’re happy to announce the release of Mission Control 2.3 which includes several new and exciting features ...

Cloud Platform | Migrating your Splunk Cloud deployment to Python 3.7

Python 2.7, the last release of Python 2, reached End of Life back on January 1, 2020. As part of our larger ...