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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...