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!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...