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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...