Dashboards & Visualizations

Results of Bar chart for no events happened ?

sumanth_isac
Path Finder

Hi,
The chart in search app shows events when did it happen.
eg. 1 bar = 1 hour

If there are no events in next hour no bar.
When there is no event in hour i want the bar to be in different colour. Is that possible ?

Tags (1)
0 Karma

jonuwz
Influencer

Yes.

Assuming that you do

... | timechart span=1h count 

Add this to your search (after the timechart):

... | eval filler=if(isnull(count),1,NULL)

then change your column graph to stacked.

'filler' and 'count' will have different colors, and either 'filler' or 'count' will be displayed because only 1 is not null.

Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...