<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Specifying a TTL when creating a job via the API? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Specifying-a-TTL-when-creating-a-job-via-the-API/m-p/43687#M530</link>
    <description>&lt;P&gt;It appears that you are looking for setttl method on the Job object:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://github.com/splunk/splunk-sdk-python/blob/master/splunk/client.py"&gt;https://github.com/splunk/splunk-sdk-python/blob/master/splunk/client.py&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;def setttl(self, value):
    self.post("control", action="setttl", ttl=value)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 04 Jan 2012 20:48:30 GMT</pubDate>
    <dc:creator>araitz</dc:creator>
    <dc:date>2012-01-04T20:48:30Z</dc:date>
    <item>
      <title>Specifying a TTL when creating a job via the API?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Specifying-a-TTL-when-creating-a-job-via-the-API/m-p/43685#M528</link>
      <description>&lt;P&gt;Is it possible to create a search job with Splunk's Python SDK and specify the TTL?&lt;BR /&gt;
In the same way as when using a saved search you can specify dispatch.ttl&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2012 23:29:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Specifying-a-TTL-when-creating-a-job-via-the-API/m-p/43685#M528</guid>
      <dc:creator>dart</dc:creator>
      <dc:date>2012-01-03T23:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying a TTL when creating a job via the API?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Specifying-a-TTL-when-creating-a-job-via-the-API/m-p/43686#M529</link>
      <description>&lt;P&gt;This is possible:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;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'})
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Jan 2012 20:47:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Specifying-a-TTL-when-creating-a-job-via-the-API/m-p/43686#M529</guid>
      <dc:creator>dart</dc:creator>
      <dc:date>2012-01-04T20:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying a TTL when creating a job via the API?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Specifying-a-TTL-when-creating-a-job-via-the-API/m-p/43687#M530</link>
      <description>&lt;P&gt;It appears that you are looking for setttl method on the Job object:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://github.com/splunk/splunk-sdk-python/blob/master/splunk/client.py"&gt;https://github.com/splunk/splunk-sdk-python/blob/master/splunk/client.py&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;def setttl(self, value):
    self.post("control", action="setttl", ttl=value)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Jan 2012 20:48:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Specifying-a-TTL-when-creating-a-job-via-the-API/m-p/43687#M530</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2012-01-04T20:48:30Z</dc:date>
    </item>
  </channel>
</rss>

