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!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...