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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...