Dashboards & Visualizations

Can icons in network diagram viz like firewall change color?

datracy
New Member

I kind of need the icon to change color resembling certain devices.

I don't want to use the server for a firewall.

The customer wants the icons to change colors instead of just the text.

Tags (3)
0 Karma

danspav
SplunkTrust
SplunkTrust

Hi @datracy,

I'm a bit late in replying - but in case anyone else has this question - yes, you can set the color of icons.

You can add the field "color" to set the color of the from icon. You can set the color of the link by setting a "linkcolor" field.

Use hex colors or english words:  "red" or "#FF0000"

| eval color=case(value==0,"blue", value==1,"yellow",value==2,"green", 1==1, "red")

Hope that helps

 

0 Karma

msivill_splunk
Splunk Employee
Splunk Employee

If you are happy to play around with Scalable Vector Graphics then the Scalable Vector Graphics - Custom Visualization app might be something to consider. There are a number of examples within the app that show parts of images changing colour based on numeric thresholds.

0 Karma

efavreau
Motivator

Can the icons change color? Yes. Easy? Depends on a lot of detail you haven't provided.
- You can look into the Dashboard Examples App for ideas: https://yoursplunkaddress/en-US/app/simple_xml_examples/contents
- My go-to might be this one https://yoursplunkaddress/en-US/app/simple_xml_examples/simple_single_color
- or this one https://yoursplunkaddress/en-US/app/simple_xml_examples/custom_decorations
- You can use custom CSS with tokens to do it. Look into http://dev.splunk.com/view/webframework-developapps/SP-CAAAEQA and https://docs.splunk.com/Documentation/Splunk/7.3.1/AdvancedDev/UseCSS

Once you have a better idea of the question you want to ask, post another question to Splunk Answers saying what you have now and what you have tried so far.

###

If this reply helps you, an upvote would be appreciated.
0 Karma

datracy
New Member

Thanks for the response but I did explain it. I am trying to change the color of the icons in Network diagram Viz application. Specifically the firewall icon.

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@datracy

If they are icons (images) then find that image in <<YOUR_APP>>/appserver/* folder and replace it with your client's image. Just make sure about the size and pixel same as old image.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...