Splunk Search

Is it possible to get an estimated job completion time for a search?

splunker12er
Motivator

Search job Inspector:

This search has completed and has returned 31232 results by scanning 434213123 events in 47.204 seconds.

Is it possible to estimate a search completion time prior it returns the complete results ? OR possibly an extra column in "Activity -> Jobs" view

Use case:
Using the REST API, I get search results and displaying them in a customized UI. If I show the user a field called "Estimated Job Completion Time ", the user can wait until the search gets completed or can reduce the time range to get limited results.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

You could GET /services/search/jobs/job_id to look at the doneProgress and runDuration fields. Dividing duration so far by progress so far should give you an estimate for the total duration.
This will be terribly inaccurate over all time because the progress can't know when the data will stop into the past. It'll also be inaccurate if your data is distributed unevenly across the time range. Lastly, this will not be able to factor in finalization time occurring once runDuration reaches 1.0.

http://docs.splunk.com/Documentation/Splunk/6.2.4/RESTREF/RESTsearch#search.2Fjobs.2F.7Bsearch_id.7D

0 Karma
Get Updates on the Splunk Community!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...