Splunk Search

How can I define column colors for a combination of fields?

Jaff
New Member

I need to colorize all the columns of a table, except the sole field whose name I know. Due to the large indeterminate collection of data combinations I am examining, I cannot know what names the fields which will be displayed can be. I need to have the first column NOT be colorized, but all the other columns SHOULD be colorized:

<format type="color" field="container">
  <scale type="linear"></scale>
  <colorPalette type="list">[#FFFFFF,#FFFFFF]</colorPalette>
</format>
<format type="color">
  <colorPalette type="sharedList"></colorPalette>
  <scale type="sharedCategory"></scale>
</format>

Unfortunately, the above results in ALL columns being colorized.

0 Karma

Jaff
New Member

Answer was to change the scale to "category" since field contained non-numeric data. Also, alternated colors in palette:

<format type="color" field="container">
  <scale type="category"></scale>
  <colorPalette type="list">[#FFFFFF,#DCDCDC]</colorPalette>
</format>
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 ...