All Apps and Add-ons
Highlighted

Round Value of An Average Value

Path Finder

Hi ,

I am getting a average value in my result output but it goes to 6 decimal places....i need to round it to only two - tried couple of things with no luck - can some one please suggest where i am going wrong with this:

.. | stats avg(Latencymsec) as AverageLatencymsec | eval AvgLatencymsec=round(AvgLatency_msec,2)

0 Karma
Highlighted

Re: Round Value of An Average Value

SplunkTrust
SplunkTrust

In the stats you use the full "Average", in the eval you abbreviate to "Avg".

View solution in original post

0 Karma
Highlighted

Re: Round Value of An Average Value

Path Finder

aah...thanks

0 Karma