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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...