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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Event Series: Splunk Observability Metrics Cost Optimization

Balancing Scale and Spend: Gaining Control Over High-Volume Metrics in Splunk Observability Cloud As ...

Kick the Tires Before You Commit: A Hands-On Tour of the Splunk Observability Cloud ...

Evaluating an enterprise observability platform usually goes like this: fill out a form, get a free trial with ...

Deep insights, no barriers: Splunk Observability Cloud Free Edition

As software delivery cycles continue to accelerate, observability shouldn’t be a luxury — it should be a ...