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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...