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!

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...