Dashboards & Visualizations

how do i change the color mappings in rangemap?

Path Finder

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

Tags (3)
0 Karma


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:



0 Karma