Is it possible to create a search job with Splunk's Python SDK and specify the TTL?
In the same way as when using a saved search you can specify dispatch.ttl
It appears that you are looking for setttl method on the Job object:
https://github.com/splunk/splunk-sdk-python/blob/master/splunk/client.py
def setttl(self, value):
self.post("control", action="setttl", ttl=value)
It appears that you are looking for setttl method on the Job object:
https://github.com/splunk/splunk-sdk-python/blob/master/splunk/client.py
def setttl(self, value):
self.post("control", action="setttl", ttl=value)
This is possible:
import splunk.client as client
service = client.connect(**{'username':'admin','password':'changeme'})
service.parse('search index=*', parse_only=True)
job = service.jobs.create('search index=*',**{'timeout':'123456'})