Splunk Search

fill chart x-axis if data is missing

hunyady
Explorer

Hi,
I have a search, want to show two lines of counts by min in a chart. Want to have value 0 if there is no result in some minute.
i.E.
time typ=A typ=B
12:30 100 110
12:31 100 ---
12:32 --- ---
12:33 40 50
etc.
I want to have the values of "0" at 12:32 too in my graph.
other problem:
By chart is "span=1m" not accepted, I don't have result by "chart count by typ span=1m" only by "chart count by typ"
thank you

Tags (2)
0 Karma

woodcock
Esteemed Legend

Your text is extremely difficult to understand but maybe this is what you seek:

... | timechart span=1m count by type
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Try

... | chart cont=false count by typ

or

... | fillnull value=0 typ | chart count by typ
---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...