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!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...