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!

OpenTelemetry for Legacy Apps? Yes, You Can!

This article is a follow-up to my previous article posted on the OpenTelemetry Blog, "Your Critical Legacy App ...

UCC Framework: Discover Developer Toolkit for Building Technology Add-ons

The Next-Gen Toolkit for Splunk Technology Add-on Development The Universal Configuration Console (UCC) ...

.conf25 Community Recap

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