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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...