Dashboards & Visualizations

My rangemap can not show the right color

flora123
Path Finder

Hello, I used two rangemap in my dashboard.

They all used this at the end.

...| stats count as Num | eval Num=tostring(abs(Num),"commas") | rangemap field=Num severe=1-1000000000000000 default=low

The Num A=359, so it displays red color. The Num B=236,457 , but it is green!

What's worng with them? I am so confused.

Thanks a lot. 😃

My splunk's version is 4.1.6(89596).

Tags (1)
0 Karma
1 Solution

Lamar
Splunk Employee
Splunk Employee

Remove your commas eval and you should be good to go. It's (rangemap) expecting an integer to evaluate not a string.

Hope that helps.

View solution in original post

0 Karma

Lamar
Splunk Employee
Splunk Employee

Remove your commas eval and you should be good to go. It's (rangemap) expecting an integer to evaluate not a string.

Hope that helps.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...