Splunk Search

index and alert on any host by total count

postrowski
New Member

index and alert if any host over the last 30 minutes sees more than 1k of messages.

How do I do this?

Tags (3)
0 Karma

hazekamp
Builder

If your interested in evaluating longer periods of time (or multiple hosts) you may want to check out the metrics logs created by Splunk:

index=_internal source=*metrics* group=per_host_thruput | stats sum(ev) as count by series | search count>500 

You can also specify time constraints in the scheduled search instead of the search syntax itself.

0 Karma

David
Splunk Employee
Splunk Employee

To get your data indexed in the first place, you can follow the numerous guides available. To alert if any host sees more than 1k messages, I'd do the following:

YourSearch earliest=-30m | stats count by host | where count > 500

You can then schedule that search, and alert if the count > 0

Further Reading:

Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...