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!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

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 ...