Splunk Search

How to search Indexes with count = 0

jto13
Explorer

Dear Team,

I just want to use the simple search below to see which indexes are having zero count that day/week/whichever time period.

index= *
| stats count by index
| where count = 0

However, the search is not returning anything and if I remove the where count=0 it is only returning indexes with more than zero counts. How do I make sure that the indexes with count=0 are included?

Thank you.

Warm Regards.

 

Labels (2)
Tags (3)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
index=*
| timechart span=1d count by index
| untable _time index count
| where count = 0
0 Karma
Get Updates on the Splunk Community!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...