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!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...