Splunk Search

Ignore rows without any values in timechart

rnvrnv
Engager

hi all,
I am trying to create a timechart of number of, for example errors in certain days. In result table i get list of all days. that is fine. what i would like to do now is only show row (day) where some data exist. Will appreciate your help.

regards,
rnv

Tags (3)
0 Karma
1 Solution

niketn
Legend

@rnvrnv another option would be to use timechart with cont=f. Following is a run anywhere search based on Splunk's _internal index

index=_internal sourcetype=splunkd log_level!=INFO
| timechart span=1d count as ERRORS cont=f
____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

View solution in original post

niketn
Legend

@rnvrnv another option would be to use timechart with cont=f. Following is a run anywhere search based on Splunk's _internal index

index=_internal sourcetype=splunkd log_level!=INFO
| timechart span=1d count as ERRORS cont=f
____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

HiroshiSatoh
Champion

Try this!

(your search)
 | timechart span=1d count by XXX
↓
(your search)
 | bin _time span=1d
 | chart count over _time by XXX
0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...