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!

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

What are Community Office Hours?Community Office Hours is an interactive 60-minute Zoom series where ...

Updated Data Type Articles, Anniversary Celebrations, and More on Splunk Lantern

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

A Prelude to .conf25: Your Guide to Splunk University

Heading to Boston this September for .conf25? Get a jumpstart by arriving a few days early for Splunk ...