Alerting

alert when host sends less than 100 logs per hour

sbattista09
Contributor

how to see when a set of host send under 100 logs per hour? stats count wont show a value of 0. and you cant use HEAD with fields(that i know of). Whats the best way to do this?

Tags (1)
0 Karma
1 Solution

adonio
Ultra Champion

you can use | tstats command, for the last 60 minutes every hour

 | tstats count where index = * by host | where count < 100

save as an alert and triger where count = 0

hope it helps

View solution in original post

0 Karma

adonio
Ultra Champion

you can use | tstats command, for the last 60 minutes every hour

 | tstats count where index = * by host | where count < 100

save as an alert and triger where count = 0

hope it helps

0 Karma

sbattista09
Contributor

need to alert on hosts sending under 100 or so logs per hour.

0 Karma

adonio
Ultra Champion

when you say logs you mean events or source?

0 Karma

sbattista09
Contributor

logs as in events.

0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

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 ...