Splunk Search

Alert when count = 0

SplunkUser5888
Path Finder

Hi guys, I've seen similar questions and answers but can't get around them. My question is simple... I guess.

I am searching antivirus logs to see if the scan is being run daily. If it is not, then I would like to register and alert in Splunk. My search is as follows:

host=server2003-splu sourcetype=fs_notification index=_audit Defender\\Scans\\History action=update | stats count

I would like a way to have an alert if count = 0

Thanks for any help

Tags (1)
0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

Instead of computing the count yourself you can create an alert that runs daily and is triggered if the number of results is equal to zero.

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

Instead of computing the count yourself you can create an alert that runs daily and is triggered if the number of results is equal to zero.

SplunkUser5888
Path Finder

Thanks so much, I knew it had to be something simple, my bad

0 Karma

SplunkUser5888
Path Finder

PS: I've tried | where count<1 but that doesn't seem to work

0 Karma
Get Updates on the Splunk Community!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

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