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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...