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!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

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