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!

Splunk Observability Synthetic Monitoring - Resolved Incident on Detector Alerts

We’ve discovered a bug that affected the auto-clear of Synthetic Detectors in the Splunk Synthetic Monitoring ...

Video | Tom’s Smartness Journey Continues

Remember Splunk Community member Tom Kopchak? If you caught the first episode of our Smartness interview ...

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud?

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud? Learn how unique features like ...