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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...