Dashboards & Visualizations

Question with time chart and Round

arieffel
New Member

host="ESX" NOT (host="GA*" OR host="WA*") | timechart span=1m eval(round(avg(Temperatures{}.CurrentReading),2)) by host

Trying to get just 2 decimal places on the "Temperatures{}.CurrentReading" but getting expression is malformed.

Sorry, I'm a Splunk newbie and I"m trying to read on the webs and piece together what makes sense.

Tags (2)
0 Karma

somesoni2
Revered Legend

Try this

host="ESX" NOT (host="GA*" OR host="WA*") | timechart span=1m avg(Temperatures{}.CurrentReading) by host
| foreach * [| eval "<<FIELD>>"=round('<<FIELD>>',2)]
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...