Splunk Search

Calculate average execution time for a known field

mhornste
Path Finder

Hi,

I'm having issues calculating the average execution time of an available field in Splunk. I have searched for some time now on Splunk Answers and tried a lot, but unfortunately couldn't find s.th. helpful.

The following search string lists the Execution Times of a specific function of my application for the selected time span:

index= otcs FunctionAction="ngd.folderview" | table ExecutionTime

I'd like to have an output of this FunctionAction with the average Execution time of the selected time frame of all values listed by the search string. I already did some tests like avg(ExecutionTime) and had some results as Single Value, but the average was not correct (I double checked with Excel: restricted the time span to have only a few values).

Could anyone point me to the right direction?

Thanks!

Tags (3)
0 Karma

woodcock
Esteemed Legend

Like this:

 index= otcs FunctionAction="ngd.folderview" | stats avg(ExecutionTime)
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

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

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...