Splunk Search

How to add colors to the columns based on conditions?

swetar
New Member

Hi everyone,

I wanted to highlight the row values based on condition. I am new to CSS and JS . Can you please guide me
TARGET STATE COLOUR
ONLINE ONLINE GREEN
OFFLINE ONLINE RED
OFFLINE OFFLINE GREY

Thanks 🙂

alt text

0 Karma
1 Solution

renjith_nair
SplunkTrust
SplunkTrust

@swetar ,
Refer to the splunk dashboard examples where you have these examples : https://splunkbase.splunk.com/app/1603/

Below is another answer which does the same.

https://answers.splunk.com/answers/670546/how-to-change-color-of-entire-row-based-on-field-v.html

Happy Splunking!

View solution in original post

0 Karma

renjith_nair
SplunkTrust
SplunkTrust

@swetar ,
Refer to the splunk dashboard examples where you have these examples : https://splunkbase.splunk.com/app/1603/

Below is another answer which does the same.

https://answers.splunk.com/answers/670546/how-to-change-color-of-entire-row-based-on-field-v.html

Happy Splunking!
0 Karma

swetar
New Member

@ renjith.nair
Thanks!! it worked...

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...