Splunk Search

How to use colors on Tree View

caioandrades
Loves-to-Learn Lots

Hi,

I'd like to know how can I apply colors on the icon according to range values on Tree View (custom viz).  The image bellow its the default visualization.

caioandrades_1-1602079354316.png

I would like some thing like this one: 

caioandrades_2-1602079582548.png

Since I want to put some parent-child relationship, I'm using this viz. I appreciate any help. 





Labels (1)
Tags (1)
0 Karma

danspav
SplunkTrust
SplunkTrust

Hi @caioandrades,

I'm the developer of the Treview Viz app. I've just posted an update to Splunkbase which will let you specify the color for custom icons and the label. It also works on the other skins, but it looks best on the custom skin.

With the update you can include an HTML color code in the "color" field like this:

| eval color=if(cpu>80,"#990000", "#009900")

danspav_0-1603432448426.png

You can download the new version from Splunkbase here: https://splunkbase.splunk.com/app/5101/

0 Karma
Get Updates on the Splunk Community!

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...

Splunk App Developers | .conf25 Recap & What’s Next

If you stopped by the Builder Bar at .conf25 this year, thank you! The retro tech beer garden vibes were ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...