Splunk Search

Having a % to follow number on gauge chart

pglover12
New Member

Current:
| search MachineNumber="01"
| eval PercentComplete= round(((CountSinceLastTaskCompletion)/MaintenanceFrequencyValue)*100,0)
| chart First(PercentComplete) as PercentComplete by MaintenanceTaskName
-15m
now
1

ellipsisNone
0
collapsed
collapsed
collapsed
none
linear
none
linear
none
0
inherit
radialGauge
50
10
area
gaps
[0,80,90,100,110]
none
0.01
default
shiny
["0x53a051","0xf8be34","0xf1813f","0xdc4e41"]
0
0
ellipsisMiddle
standard
none
2
324
1
1
small

Tags (1)
0 Karma

niketn
Legend

@pglover12 while posting code or data on Splunk Answers make sure you use the code button i.e. 101010 or shortcut Ctrl+K so that special characters do not escape.

Based on the issue description if you want to add % to Radial Gauge please refer to my older answer which does this using Simple XML JS Extension and SplunkJS stack: https://answers.splunk.com/answers/717431/how-can-i-add-a-percentage-sign-to-the-radial-gaug.html

alt text

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

Index This | When is October more than just the tenth month?

October 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What’s New & Next in Splunk SOAR

 Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us for an ...