Dashboards & Visualizations

Calendar Heatmap Visualization colors

gcusello
SplunkTrust
SplunkTrust

Hi at all,
I'd like to use Heatmap Visualization but I'm not able to change blocks colors.
I'm able to change min and max color and the intermediate values but I don't know how to change blocks color when value is 0 or NULL that usually is black (it isn't good for a user to see AS KPI a black cell, it could think that there's a problem instead value is 0!): I didn't find any option to do this, because min value is never 0.
Anyone has any idea?
Bye.
Giuseppe

0 Karma
1 Solution

niketn
Legend

@cusello, Black cells are displayed in Calendar Heat Map when the statistical value for specific time period is not numeric. So you can try use fillnull command to replace null with 0 or some default high or low number to apply color as per your range. If your data already has 0 Heatmap should adjust color ranges accordingly.

I would also request you to check out Punchcard Custom Visualization which depicts information similar to Timechart but gives more hover options. Bubbles in Punchcard can be set to specific size based on value as well. So, Null value bubble will not be present at all.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

View solution in original post

0 Karma

niketn
Legend

@cusello, Black cells are displayed in Calendar Heat Map when the statistical value for specific time period is not numeric. So you can try use fillnull command to replace null with 0 or some default high or low number to apply color as per your range. If your data already has 0 Heatmap should adjust color ranges accordingly.

I would also request you to check out Punchcard Custom Visualization which depicts information similar to Timechart but gives more hover options. Bubbles in Punchcard can be set to specific size based on value as well. So, Null value bubble will not be present at all.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi niketnilay,
thank you for your quick answer.

I have in black both cells without values and cells with value=0.
I had the dubt that values was in not numeric format but I verified format with typeof function and they are all numeric, infact I can sum them.

This is my search where Day is the date of execution of a VM and KPI_Average is a calculation of many KPIs, values are in a Summary:

index=my_summary
| search host="myhost"
| eval _time=strptime(Day,"%d/%m/%Y")
| fillnull KPI_Average
| timechart span=1d sum(KPI_Average) AS KPI_Average

I'm trying Bubbles in Punchcard,

Bye.
Giuseppe

0 Karma

niketn
Legend

Hi Giuseppe,

I am not sure if it is typo but seems fillnull is reversed.

 index=my_summary  host="myhost"
 | eval _time=strptime(Day,"%d/%m/%Y")
 | timechart span=1d sum(KPI_Average) AS KPI_Average
 | fillnull value=0 KPI_Average

You can validate results/rows in Table as well. Ideally 0's will be Grey in Calendar Heat Map.

If you are testing Punchcard, hopefully you will like it better.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

gcusello
SplunkTrust
SplunkTrust

Solved!
Thank you.
Bye.
Giuseppe

0 Karma

niketn
Legend

Anytime 🙂

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

gcusello
SplunkTrust
SplunkTrust

I spoke too early:
this is true if there's at least one value not zero, if all the values are 0 or NULL all the cells are black!
Bye.
Giuseppe

0 Karma

niketn
Legend

This is still surprising. Timechart command with fillnull should make the buckets continuous and ideally not leave any NULL range.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

niketn
Legend

@cusello, Black cells are displayed in Calendar Heat Map when the statistical value for specific time period is not numeric. So you can try use fillnull command to replace null with 0 or some default high or low number to apply color as per your range. If your data already has 0 Heatmap should adjust color ranges accordingly.

I would also request you to check out Punchcard Custom Visualization which depicts information similar to Timechart but gives more hover options. Bubbles in Punchcard can be set to specific size based on value as well. So, Null value bubble will not be present at all.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...