Splunk Search

Color code single value on other field

mschlager
New Member

I would like to color a single value, based on a field value that is not the one displayed in the panel. I was able to do so previously using the classField option; however, since it is deprecated in 6.4 ,I'm not sure how I would do this.

Tags (1)
0 Karma

renjith_nair
Legend

You might have already resolved the problem but in case you haven't - I am still using the single panel color coding using range with a minor workaround

      <single>
        <title>Status</title>
        <search>
          <query>my search|eval range=if(Status < 1,"severe", "low") |table range Status </query>
          <earliest>-60m@m</earliest>
          <latest>now</latest>
        </search>
        <option name="classField">range</option>
        <option name="field">Status</option>
      </single>

Two things to remember :

  • The variable name should be range in the eval statement and also mention the same in classField option
  • The field you want to display as the value can be provided in the field option.

Hope this helps!

---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma

helenashton
Path Finder

Did you work this out? I'm trying to do exactly the same thing.

0 Karma
Get Updates on the Splunk Community!

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...