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!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...