All Apps and Add-ons

Round Value of An Average Value

nikhilmehra79
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(Latency_msec) as Average_Latency_msec | eval Avg_Latency_msec=round(Avg_Latency_msec,2)

0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

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

View solution in original post

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

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

0 Karma

nikhilmehra79
Path Finder

aah...thanks

0 Karma
Get Updates on the Splunk Community!

Splunk Observability Cloud's AI Assistant in Action Series: Auditing Compliance and ...

This is the third post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

What You Read The Most: Splunk Lantern’s Most Popular Articles!

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...