Alerting

Why is Splunk not allowing me to specify the trigger condition "Threads > 1600" for my custom alert?

B83896
New Member

Hi,

I am using the following search for monitoring number of Threads on a server:

index=perfmon host=CCEVPSYCA01 sourcetype="Perfmon:System" counter=Threads| eval Date=strftime(_time, "%Y-%m-%d %H:%M") | rename Value AS Threads | table Date, Threads | SORT BY Date

and I want to set up an alert to be triggered when conditions are met (custom alert): Threads > 1600. But Splunk does not allow me to specify this condition in the alert "threads > 1600".

Could you please help me in resolving this? Thanks,

0 Karma
1 Solution

renjith_nair
Legend

Try providing the condition as search Threads > 1600 in the condition box.
Another way to do is including the condition in the search itself and alert when Number of Resultsis greater than '0'

ie

index=perfmon host=CCEVPSYCA01 sourcetype="Perfmon:System" counter=Threads| eval Date=strftime(_time, "%Y-%m-%d %H:%M") | rename Value AS Threads | table Date, Threads | SORT BY Date|search Threads > 1600

and then selecting the drop down Number of Results is greater than 0

---
What goes around comes around. If it helps, hit it with Karma 🙂

View solution in original post

renjith_nair
Legend

Try providing the condition as search Threads > 1600 in the condition box.
Another way to do is including the condition in the search itself and alert when Number of Resultsis greater than '0'

ie

index=perfmon host=CCEVPSYCA01 sourcetype="Perfmon:System" counter=Threads| eval Date=strftime(_time, "%Y-%m-%d %H:%M") | rename Value AS Threads | table Date, Threads | SORT BY Date|search Threads > 1600

and then selecting the drop down Number of Results is greater than 0

---
What goes around comes around. If it helps, hit it with Karma 🙂

B83896
New Member

Hello,
Great! Thanks - first option worked for me!

0 Karma

renjith_nair
Legend

Good to know. Please accept as answer so that the thread will be closed

---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma

B83896
New Member

Done, thank you!

0 Karma
Get Updates on the Splunk Community!

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Your Voice Matters! Help Us Shape the New Splunk Lantern Experience

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Building Momentum: Splunk Developer Program at .conf25

At Splunk, developers are at the heart of innovation. That’s why this year at .conf25, we officially launched ...