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!

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...