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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...