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!

AppDynamics Summer Webinars

This summer, our mighty AppDynamics team is cooking up some delicious content on YouTube Live to satiate your ...

SOCin’ it to you at Splunk University

Splunk University is expanding its instructor-led learning portfolio with dedicated Security tracks at .conf25 ...

Credit Card Data Protection & PCI Compliance with Splunk Edge Processor

Organizations handling credit card transactions know that PCI DSS compliance is both critical and complex. The ...