Splunk Search

Count also occurences that are not present for alerting

sbsbb
Builder

I've made some searchs for alerting, but my problem is when I make a | stats count, if some occurences are not present in the time frame I search, the count will no be 0, they won't be anything, how can I change this...

For exemple at the moment if messege 1 not present, I have this
Count
Messege 1 5
Messege 1 5

I would like this

          Count

Messege 1 5
Messege 1 5
Messege 0 5

Tags (3)
0 Karma

yannK
Splunk Employee
Splunk Employee
0 Karma

sbsbb
Builder

I'm not sure, but it seems this doesn't work if there is no event at all...

for exemple, if I'm counting the error by partner,
if I've got over the search time range 0 messages from that parner, there is no line for it in the results...

An fillnull doesn't help... or am I wrong ?

0 Karma
Get Updates on the Splunk Community!

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

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...