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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...