<?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: Why old search jobs that should expire are not being removed from jobs directory? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-old-search-jobs-that-should-expire-are-not-being-removed/m-p/186502#M53698</link>
    <description>&lt;P&gt;The answer to your conundrum lies in "alert.email = 1". Any job which triggers an alert action (email, "alert", etc) takes on the TTL of that action. Check alert_actions.conf; stanza headers align with the &amp;lt;foo&amp;gt; part of "alert.&amp;lt;foo&amp;gt;" in savedsearches.conf.&lt;/P&gt;</description>
    <pubDate>Mon, 09 May 2016 16:33:25 GMT</pubDate>
    <dc:creator>sowings</dc:creator>
    <dc:date>2016-05-09T16:33:25Z</dc:date>
    <item>
      <title>Why old search jobs that should expire are not being removed from jobs directory?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-old-search-jobs-that-should-expire-are-not-being-removed/m-p/186500#M53696</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Currently, our jobs directory is more than full. To fix this, we wanted to change the expiry time of jobs so they would be deleted from the jobs (as we have no need for historic ones to be stored at all). However, setting the dispatch.ttl doesn't appear to have fixed this. We have the following setting for a saved search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[test_page_pivot]
action.email = 1
action.email.inline = 1
action.email.sendresults = 1
action.email.subject = TEST Splunk Alert: $name$
action.email.to = xxxxxxxxxxx@gmail.com
alert.digest_mode = True
alert.expires = 30m
alert.severity = 1
alert.suppress = 0
alert.track = 0
auto_summarize.dispatch.earliest_time = -1d@h
cron_schedule = */10 * * * *
dispatch.earliest_time = -24h@m
dispatch.ttl = 1p
enableSched = 1
search = | pivot TEST_page_pivot TEST_page_object count(TEST_page_object) AS "Total" SPLITCOL platform SPLITROW app_id AS "app_id" | search app_id="*" | rename VALUE AS unknown | addtotals
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As you can see, dispatch.ttl is set to 1p for this query which runs every 10minutes. Therefore it should be reaped from the jobs after 10minutes, however this is not the case .&lt;/P&gt;

&lt;P&gt;Inside jobs, the expiry time keeps being extended, even if it initially shows the expected expiry time. What's causing this?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2014 10:23:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-old-search-jobs-that-should-expire-are-not-being-removed/m-p/186500#M53696</guid>
      <dc:creator>anthony_copus</dc:creator>
      <dc:date>2014-08-19T10:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why old search jobs that should expire are not being removed from jobs directory?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-old-search-jobs-that-should-expire-are-not-being-removed/m-p/186501#M53697</link>
      <description>&lt;P&gt;Hi Anthony,&lt;BR /&gt;
Just wondering if you ever found any solution to this?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2015 04:25:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-old-search-jobs-that-should-expire-are-not-being-removed/m-p/186501#M53697</guid>
      <dc:creator>kmugglet</dc:creator>
      <dc:date>2015-09-25T04:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Why old search jobs that should expire are not being removed from jobs directory?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-old-search-jobs-that-should-expire-are-not-being-removed/m-p/186502#M53698</link>
      <description>&lt;P&gt;The answer to your conundrum lies in "alert.email = 1". Any job which triggers an alert action (email, "alert", etc) takes on the TTL of that action. Check alert_actions.conf; stanza headers align with the &amp;lt;foo&amp;gt; part of "alert.&amp;lt;foo&amp;gt;" in savedsearches.conf.&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 16:33:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-old-search-jobs-that-should-expire-are-not-being-removed/m-p/186502#M53698</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2016-05-09T16:33:25Z</dc:date>
    </item>
  </channel>
</rss>

