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