Dashboards & Visualizations

how do i change the color mappings in rangemap?

timpgray
Path Finder

Does anyone know how I would modify the color mappings used for rangemap?

Tags (3)
0 Karma

lguinn2
Legend

In the rangemap command, you can use any categorization scheme that you like. You could call the categories A1, B2, C3 or just about anything else.

However, most people use one of these categories: low, guarded, elevated, high and severe - because the default Splunk CSS has already mapped these categories to the colors: green, blue, yellow, orange and red, respectively.

You can make your own categories by editing the application.css for a particular app. For example this defines a color for a Single Value Panel:

.SingleValue .purple {
       background-color: #660066;
       color: #ffffff;
}

defines a CSS class that can be referred to by the category name purple.

Just remember that you will need to edit the dashboard XML to make the color show up. In simple XML, this usually looks like:

<option name="classField">range</option>

More info here:

http://docs.splunk.com/Documentation/Splunk/5.0/AdvancedDev/UseCSS

http://docs.splunk.com/Documentation/Splunk/5.0/Viz/PanelreferenceforSimplifiedXML#Single_value_pane...

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 ...