Alerting

Range map is not working properly in Splunk 6.5.3

ashikuma
Explorer

Range map is not working properly in Splunk 6.5.3. Below is my search query, When value is above 90 then it says green color which is correct, and when value is below 90 then other two defined (elevated & severe) are not working, if its (health field) range is between the two values then it's color getting merged, like green color is default there and when red color should come then it's getting merged and color showing is black

my search|rangemap field=Health low=90-100 elevated=70-89 severe=0-69

please do needful, is this due to decimal values which is coming for health field?
I tried to remove decimal values and kept above same range but still didn't work.

Tags (1)
0 Karma

niketn
Legend

@ashikuma can you try the following?
Set specific value for | eval Health= as per your use case. Currently it calculates a random percent with two digits precision.

| makeresults
| fields - _time
| eval Health=round((random()/random())*100,2), Health=case(Health>100,100,Health<0,0,isnull(Health),0,true(),Health)
| rangemap field=Health low=90-100 elevated=70-89.99 severe=0-69.99 default=severe

What is the reason for rangemap? If you are looking for Single value coloring with rangemap, you should better use UI Edit > Format Visualization> Color> Use Color> Color By Value option. Refer to documentation: https://docs.splunk.com/Documentation/Splunk/latest/Viz/SingleValueFormatting#Migration_for_rangemap...

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

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 ...