Splunk Search

How can I find out the average run time of a query?

danielbb
Motivator

Based on Can I see the top skipped searches?

I got a couple of offending queries, with a message such as - The maximum number of concurrent running jobs for this historical scheduled search on this instance has been reached (279).

alt text

How can I find the average run time of this query - Lookup_Update?

Tags (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

You can check the job listing (Activity->Job) or run this search (substitute a specific search name, if you wish):

index=_internal source=*scheduler.log run_time=* savedsearch_name=* | stats avg(run_time) as avgRunTime by savedsearch_name
---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

You can check the job listing (Activity->Job) or run this search (substitute a specific search name, if you wish):

index=_internal source=*scheduler.log run_time=* savedsearch_name=* | stats avg(run_time) as avgRunTime by savedsearch_name
---
If this reply helps you, Karma would be appreciated.

danielbb
Motivator

The run_time is in seconds, right?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Yes, it's in seconds.

---
If this reply helps you, Karma would be appreciated.
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 ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...