Alerting

i have one server having four nodes.how to write alert query for nodes have no transaction for 5 min and trigger alert email in splunk?

karthi2809
Builder

I have one server having four nodes.how to write alert query for nodes have no transaction for 5 min and trigger alert email in splunk?

Tags (1)
0 Karma

woodcock
Esteemed Legend

I do not understand what you mean; it might help to add more detail and restate things. Show sample events and a mockup of desired output.

0 Karma

dineshraj9
Builder

You can extract the node name and use that in the alert query -

index=<your_index> host=<your_host> | stats count by node_name 

And set trigger condition as "if number of results less than 4" then alert.

If you want to explicitly know which node is down, then have the four node names in the alert mailer description.

adonio
Ultra Champion

can you kindly elaborate and / or share data sample?
if we assume that each node has a unique source (or other unique field), you can create a search that counts by source and if count is = 0 then alert on that particular node

   index = whatever UniqueField = * | stats count by UniqueField
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...