Splunk Search

How to replace time series chart giving no results

kirrusk
Communicator

Hi All,

I created single value panels using a time-series chart. If there is no data it's display's "no results found"

But I want to display "0(zero)" instead of no results.

Can any help how to do this.

index = *  sourcetype=*   procount=* phase=*  |  timechart span=10m count(eval(phase="running") as dd 

Labels (4)
0 Karma
1 Solution

kamlesh_vaghela
SplunkTrust
SplunkTrust

@kirrusk 

Can you please try this?

index = *  sourcetype=*   procount=* phase=*  |  timechart span=10m count(eval(phase="running")) as dd | appendcols [| makeresults | eval dd="0"] 

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust
| appendpipe [stats count | where count = 0]
0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@kirrusk 

Can you please try this?

index = *  sourcetype=*   procount=* phase=*  |  timechart span=10m count(eval(phase="running")) as dd | appendcols [| makeresults | eval dd="0"] 
Get Updates on the Splunk Community!

What’s New in Splunk Enterprise 9.4: Tools for Digital Resilience

What’s New in Splunk Enterprise 9.4: Tools for Digital ResilienceTune in to What’s New in Splunk Enterprise ...

Get Schooled with Splunk Education: Explore Our Latest Courses

At Splunk Education, we’re dedicated to providing incredible learning experiences that cater to every skill ...

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL  The Splunk AI Assistant for SPL ...