Dashboards & Visualizations

Single Values - Rangemap and displaying original field value

mcwomble
Path Finder

Hi,

With the following code in a dashboard I can get the background of a single value to change depending on the range of a field. However the value within the single value box also changes to the value of the ranges i.e low, severe, good. How can I keep the single value as the original numeric value and still retain the color coding?

<searchString>midas tablespace| table DATA_STAGE_percentage_used | rangemap field=DATA_STAGE_percentage_used low=0-89 severe=95-100 elevated=90-94</searchString>
      <title>Tablespace DATA_STAGE Percentage Used</title>
      <option name="classField">range</option>
      <earliestTime>-1h</earliestTime>

Thanks

Tags (1)
0 Karma
1 Solution

ziegfried
Influencer

You have to define the "field" option for the SingleValue module.

...
<option name="classField">range</option>
<option name="field">DATA_STAGE_percentage_used</option>
...

View solution in original post

ziegfried
Influencer

You have to define the "field" option for the SingleValue module.

...
<option name="classField">range</option>
<option name="field">DATA_STAGE_percentage_used</option>
...
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...