Splunk Search

Specific keyword based colour

jerinvarghese
Communicator

Hi Team,

need help in getting few nodelabel highlighted.  "WANRT"  & "DCNDC".

sitecodenodelabel
PJSLANCUA001
PCWLANCUA001
PCWWANINF001
PCWWANRTC001
PCWDCNDCI001

 

Below is the code that I used to get the "WANRT" devices highlighted with RED color, but i am unable to get the "DCNDC" devices too. 

 

 

        <format type="color" field="nodelabel">
          <colorPalette type="expression">if (like(value,"%WANRT%"),"#FF5733","#FFFFFF")</colorPalette>
        </format>

 

 

please help me with the code to get both highlighted.

Labels (5)

richgalloway
SplunkTrust
SplunkTrust

Have you tried this?

<format type="color" field="nodelabel">
  <colorPalette type="expression">
if (like(value,"%WANRT%") OR like(value, "DCNDC%"),"#FF5733","#FFFFFF")</colorPalette>
</format>
---
If this reply helps you, Karma would be appreciated.
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...

Customer success is front and center at .conf25

Hi Splunkers, If you are not able to be at .conf25 in person, you can still learn about all the latest news ...