Splunk Search

Throttle Saved Search returns 1 email istead of 70

bsizemore
Path Finder

I may have found a bug with Saved Searches and Report. I am using Splunk 6.0.3 on *nix, and have created these saved searches from the Web GUI. First the case where it works:

CASE 1

index=something host=something* | dedup host | table host

The query above returns a neat little table with the expect six different hostnames, and one individual emails are sent for each hostname. The schedule checks once a minute. The throttle allows one alert every five minutes. Within ten minutes I received the expected total of twelve emails. The data was unique in each email.

CASE 2

index=something host=something* collection="LogicalDisk" counter="% Free Space" instance="C:" Value<40
| dedup host
| multikv fields host instance Value
| eval pcnt_free=(0.00 + tonumber(rtrim(Value,"%")))
| table host instance pcnt_free
| rename host as Host instance as Drive pcnt_free as "Percent Free"

Using the same schedule above, I recieve only two emails.

Tags (2)
0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

Your second query doesn't have a host field, you renamed it to Host - as a result, your throttle field is null every time and correctly suppresses all but one mail per five minutes.

View solution in original post

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Your second query doesn't have a host field, you renamed it to Host - as a result, your throttle field is null every time and correctly suppresses all but one mail per five minutes.

0 Karma

bsizemore
Path Finder

Many thanks. That is, of course, the correct thing to do.

0 Karma

bsizemore
Path Finder

we are throttling on host

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Are you throttling based on host or Host?

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