Dashboards & Visualizations

color a text in table based on a codition

usup_rajbahak
Path Finder

Hey there,

I need to be able to color a specific text in a table based on condition. For example, color the word 'root' in red or color the word 'accept' in green. I was looking at rangemap but seems like it only works with numeric values.

Thanks for your help in advance.

Usup

Tags (1)

LukeMurphey
Champion

See http://splunk-base.splunk.com/answers/83206/color-in-a-table-based-on-values for a simple approach that allows you to use CSS selectors to update colors in SimpleResultsTable.

0 Karma

bmacias84
Champion

I think the simple else way would be to use range map. The other way would be do build your own application.js and application.css which would over ride the default behaviors. I done very similar task modifying single value panels.

http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Rangemap

http://docs.splunk.com/Documentation/Splunk/latest/Developer/EventRendering

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...