<?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: Java SDK - How to Save a Job in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Java-SDK-How-to-Save-a-Job/m-p/31797#M372</link>
    <description>&lt;P&gt;You can use the &lt;CODE&gt;job.touch()&lt;/CODE&gt; method to keep the job alive for the given ttl (time to live) or modify the ttl by using &lt;CODE&gt;job.setttl(&amp;lt;ttl in seconds&amp;gt;)&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;"Touching" the job every few thousand events might be a good idea. Additionally, using &lt;CODE&gt;job.cancel()&lt;/CODE&gt;when you've finished processing the results can be used to remove the job.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;job.setttl(86400);
processEvents(job);
job.cancel();
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 20 Apr 2012 07:13:34 GMT</pubDate>
    <dc:creator>ziegfried</dc:creator>
    <dc:date>2012-04-20T07:13:34Z</dc:date>
    <item>
      <title>Java SDK - How to Save a Job</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Java-SDK-How-to-Save-a-Job/m-p/31796#M371</link>
      <description>&lt;P&gt;I am running a Job and retrieving datas over 1 Gb.&lt;/P&gt;

&lt;P&gt;What happpens is that the job expires before I have time to load all the datas.&lt;/P&gt;

&lt;P&gt;Is there a way to save the job using the API or increase the time before the job expires ?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2012 06:46:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Java-SDK-How-to-Save-a-Job/m-p/31796#M371</guid>
      <dc:creator>cbauza</dc:creator>
      <dc:date>2012-04-20T06:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Java SDK - How to Save a Job</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Java-SDK-How-to-Save-a-Job/m-p/31797#M372</link>
      <description>&lt;P&gt;You can use the &lt;CODE&gt;job.touch()&lt;/CODE&gt; method to keep the job alive for the given ttl (time to live) or modify the ttl by using &lt;CODE&gt;job.setttl(&amp;lt;ttl in seconds&amp;gt;)&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;"Touching" the job every few thousand events might be a good idea. Additionally, using &lt;CODE&gt;job.cancel()&lt;/CODE&gt;when you've finished processing the results can be used to remove the job.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;job.setttl(86400);
processEvents(job);
job.cancel();
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Apr 2012 07:13:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Java-SDK-How-to-Save-a-Job/m-p/31797#M372</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2012-04-20T07:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Java SDK - How to Save a Job</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Java-SDK-How-to-Save-a-Job/m-p/31798#M373</link>
      <description>&lt;P&gt;You can see more info here: &lt;A href="http://splunk-base.splunk.com/answers/50722/the-search-results-disappear-how-to-keep-them-longer-python-sdk?page=1&amp;amp;focusedAnswerId=52787#52787"&gt;http://splunk-base.splunk.com/answers/50722/the-search-results-disappear-how-to-keep-them-longer-python-sdk?page=1&amp;amp;focusedAnswerId=52787#52787&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2012 01:47:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Java-SDK-How-to-Save-a-Job/m-p/31798#M373</guid>
      <dc:creator>ineeman</dc:creator>
      <dc:date>2012-07-12T01:47:41Z</dc:date>
    </item>
  </channel>
</rss>

