Splunk Search

Splunk Python SDK: What are the default values for search parameters (e.g. max time)?

rajiv_abraham
Explorer

Hi,

Great documentation at:
http://dev.splunk.com/view/python-sdk/SP-CAAAEE5#getcollparams

I'd like to know what is the default value for max_time? Do I have to specify it as 0 or is it the default?

Thanks,
Rajiv

0 Karma
1 Solution

jkat54
SplunkTrust
SplunkTrust

You're just making calls to the API here so follow the details on the RESTREF:

http://docs.splunk.com/Documentation/Splunk/6.4.2/RESTREF/RESTsearch#search.2Fjobs

max_time defaults to 0

I had to look pretty hard for it but it's there under this:

http://docs.splunk.com/Documentation/Splunk/6.4.2/RESTREF/RESTsearch#POST_search.2Fjobs_method_detai...

I found it by looking for "The number of seconds to run this search before finalizing. " which was on the table in the link you provided.

There were many matches for "max_time".

View solution in original post

0 Karma

jkat54
SplunkTrust
SplunkTrust

You're just making calls to the API here so follow the details on the RESTREF:

http://docs.splunk.com/Documentation/Splunk/6.4.2/RESTREF/RESTsearch#search.2Fjobs

max_time defaults to 0

I had to look pretty hard for it but it's there under this:

http://docs.splunk.com/Documentation/Splunk/6.4.2/RESTREF/RESTsearch#POST_search.2Fjobs_method_detai...

I found it by looking for "The number of seconds to run this search before finalizing. " which was on the table in the link you provided.

There were many matches for "max_time".

0 Karma

rajiv_abraham
Explorer

Thanks Michael! My only uncertainty is that I am using a one-shot search and the documentation in the link posted by me says that it does not create or return a job while the documentation link that you provide is for search jobs. However, I think your answer may still be correct.

0 Karma

jkat54
SplunkTrust
SplunkTrust

Yeah it should go to the same endpoint regardless.

0 Karma
Get Updates on the Splunk Community!

AI for AppInspect

We’re excited to announce two new updates to AppInspect designed to save you time and make the app approval ...

App Platform's 2025 Year in Review: A Year of Innovation, Growth, and Community

As we step into 2026, it’s the perfect moment to reflect on what an extraordinary year 2025 was for the Splunk ...

Operationalizing Entity Risk Score with Enterprise Security 8.3+

Overview Enterprise Security 8.3 introduces a powerful new feature called “Entity Risk Scoring” (ERS) for ...