Alerting

Addcoltotals as threshold alert

leordimalanta
Explorer

Hi Fellow Splunkers,

I have a search which sums up the total numerical values of the columns so basically i use addcoltotals function.

My question is what will be my conditional search to my alerts creation? Because my threshold is depends on the total of my columns using addcoltotals. Since addcoltotals is not a field in my results. Thanks...

isha_rastogi
Path Finder

Try Something like below:

stats count by something| addcoltotals labelfield=something label=Total | eval check=if(count>200, 1, 0) | search check=1

Alert on check=1 or 0 based on your threshold as check would be a field.

0 Karma

somesoni2
Revered Legend

Add an stats command at the end of your search to get the max value of the column and alert based on its value.

Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...