Archive

Question with time chart and Round

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

SplunkTrust
SplunkTrust

Try this

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