<?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: Using the Java SDK, how do I change job TTL after creation? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Using-the-Java-SDK-how-do-I-change-job-TTL-after-creation/m-p/168442#M2235</link>
    <description>&lt;P&gt;The solution is actually rather simple ... use an export search, which avoids all of the headaches of ttl and size of result set.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Oct 2014 17:14:23 GMT</pubDate>
    <dc:creator>mgibian</dc:creator>
    <dc:date>2014-10-22T17:14:23Z</dc:date>
    <item>
      <title>Using the Java SDK, how do I change job TTL after creation?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Using-the-Java-SDK-how-do-I-change-job-TTL-after-creation/m-p/168441#M2234</link>
      <description>&lt;P&gt;I have written a tiny Java app to run a query and retrieve the results of that query, saving them to a file. Our Splunk system is totally overloaded, so it takes quite a while for this to happen. In fact, so long that the default TTL for the job expires at some random point during result retrieval. Right now, the only way I found to manipulate the TTL is to set it to a different value at job creation. Thus, I now set it to some arbitrarily large value (&amp;gt;6 hours). This means that I have to manually delete the job once my app is done running (since I don't want to wait &amp;gt;5 hours to clear the space in use).&lt;/P&gt;

&lt;P&gt;I'd like to handle all of this more gracefully, but to do so need to know how to do the following ... I can not find documentation explaining how to do these, thus this question:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;Extend TTL on an existing job&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Delete a job when it is done (I could try setting TTL to zero if I knew how to change TTL on an existing job).&lt;/LI&gt;
&lt;/UL&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 15 Oct 2014 23:57:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Using-the-Java-SDK-how-do-I-change-job-TTL-after-creation/m-p/168441#M2234</guid>
      <dc:creator>mgibian</dc:creator>
      <dc:date>2014-10-15T23:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using the Java SDK, how do I change job TTL after creation?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Using-the-Java-SDK-how-do-I-change-job-TTL-after-creation/m-p/168442#M2235</link>
      <description>&lt;P&gt;The solution is actually rather simple ... use an export search, which avoids all of the headaches of ttl and size of result set.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2014 17:14:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Using-the-Java-SDK-how-do-I-change-job-TTL-after-creation/m-p/168442#M2235</guid>
      <dc:creator>mgibian</dc:creator>
      <dc:date>2014-10-22T17:14:23Z</dc:date>
    </item>
  </channel>
</rss>

