Splunk Search

Using timechart to get count, why is returning null values as 0?

csquared
Engager

Already using a query with below to get total number:

| timechart span=1d count

What can I add to return, show a "0" if the query is null?

Labels (2)
Tags (1)

sperkins
Path Finder

| timechart span=1d count
| fullnull

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| appendpipe
[ stats count as _events
| where _events = 0
| eval count = 0]
Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...