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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...