Alerting

Conditional alerting examples?

the_wolverine
Champion

I'm trying to set up a conditional alert where if there are less than 50 results but greater than 0 results, I want to be alerted. It seems straightforward but I can't figure out the syntax of the condition to use. The following does not work, for example:

mysearch | stats count dc(memberUid)

condition: 0 < dc(memberUid) < 50

1 Solution

ftk
Motivator

Try renaming your distinct count field.

mysearch | stats count dc(memberUid) as dc_uid

condition: 0 < dc_uid < 50

View solution in original post

ftk
Motivator

Try renaming your distinct count field.

mysearch | stats count dc(memberUid) as dc_uid

condition: 0 < dc_uid < 50

the_wolverine
Champion

That worked. Thanks 🙂

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...