All Apps and Add-ons

calendar heatmap viz force value=0 different color?

pmeyerson
Path Finder

Is there a way to force one of the color bins to be for 0 value? Or some other splunk ninja magic to gray out those days on the calendar heatmap? The data has high spikes and many 0s. | timechart span=1d limit=0 count by status. I have some days with low values that get colored the same as 0. Splunk 6.6.2. Thanks for any suggestions.

0 Karma
1 Solution

kmaron
Motivator

nulls are black instead of being colored. if you can force your zero's to be nulls or maybe only return data that is greater than zero your zeros will become null?

View solution in original post

kmaron
Motivator

nulls are black instead of being colored. if you can force your zero's to be nulls or maybe only return data that is greater than zero your zeros will become null?

arlington
Explorer

You saved my time, thanks !

0 Karma

dijikul
Communicator

This works, but has an unexpected bug (seemingly) --- for null values between the current date and the most-recent event, the boxes are colored grey rather than black.

0 Karma

arlington
Explorer

Actually, I used only search count>0 and it did what I was looking for

dijikul
Communicator

Yes! That did it! Search count>0 rather than converting to null, and the viz shows 0-counts as grey.

Perfect!

0 Karma

niketn
Legend

Adding to @kmaron's point try the following run anywhere search with Calendar Heat Map visualization:

index=_internal sourcetype=splunkd log_level!=INFO
| timechart count
| eval count=case(count!=0,count)

This will fill count values as NULL and hence the visualization will color NULL with BLACK color.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...