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!

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...