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!

Introducing the Splunk Community Dashboard Challenge!

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

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...