<?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: how to configure retirement policy? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/how-to-configure-retirement-policy/m-p/72591#M14808</link>
    <description>&lt;P&gt;maxHotIdleSecs did the trick, so finally it looks like this:&lt;/P&gt;

&lt;P&gt;[main]&lt;BR /&gt;&lt;BR /&gt;
frozenTimePeriodInSecs = 10&lt;BR /&gt;&lt;BR /&gt;
rotatePeriodInSecs = 10&lt;BR /&gt;&lt;BR /&gt;
maxHotIdleSecs = 120  &lt;/P&gt;

&lt;P&gt;indexes spend 120 secs in hot buckets (starting from the last write action to a bucket), then rolled to warm spend 10 seconds there and finally they are deleted. If you sense any pitfall here, please let me know I'm quite new to all Splunk things.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Sep 2011 11:49:24 GMT</pubDate>
    <dc:creator>giovere</dc:creator>
    <dc:date>2011-09-12T11:49:24Z</dc:date>
    <item>
      <title>how to configure retirement policy?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-configure-retirement-policy/m-p/72587#M14804</link>
      <description>&lt;P&gt;I'm trying to make indexes retire after 60 seconds, here is how my indexes.conf looks like:&lt;/P&gt;

&lt;P&gt;[default]&lt;BR /&gt;&lt;BR /&gt;
frozenTimePeriodInSecs = 60&lt;BR /&gt;&lt;BR /&gt;
rotatePeriodInSecs = 10&lt;/P&gt;

&lt;P&gt;If I restart Splunk, it indeed removes all events older than 60 seconds, but I could not achieve the same without restarting Spunk. Am I missing any additional rotate parameter?&lt;BR /&gt;&lt;BR /&gt;
If the problem is related to maximum buket sizes (defualt 300) is there a way to make them age dependent?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2011 15:45:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-configure-retirement-policy/m-p/72587#M14804</guid>
      <dc:creator>giovere</dc:creator>
      <dc:date>2011-09-09T15:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure retirement policy?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-configure-retirement-policy/m-p/72588#M14805</link>
      <description>&lt;P&gt;Why would you do such a thing ?&lt;BR /&gt;
what is the purpose of keeping 60 seconds of data in splunk ?&lt;BR /&gt;
Also You shouldn't setup default  rules, they will apply to ALL your indexes, including the internal splunk ones, and all your summary indexes.&lt;/P&gt;

&lt;P&gt;the reasons why your rule doesn't remove all the old events instantly are :&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt; the events are stored in buckets per time period, and a bucket is been rotated only if all 
the events of a buckets are older than the retention period. &lt;/LI&gt;
&lt;LI&gt;also a hot bucket is not immediately frozen, it has to be at least rotated to warm.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;The reason why it worked after a restart :&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;When you restart splunk (since 4.2), all the hot buckets are rotated, therefore your settings apply to them.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;The only clean way to achieve your goal is to change the maximum size and span of a bucket to keep them small.&lt;BR /&gt;
see maxDataSize and maxHotSpanSecs.&lt;/P&gt;

&lt;P&gt;see explanations &lt;BR /&gt;
 &lt;A href="http://www.splunk.com/wiki/Deploy:BucketRotationAndRetention"&gt;http://www.splunk.com/wiki/Deploy:BucketRotationAndRetention&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2011 16:23:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-configure-retirement-policy/m-p/72588#M14805</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2011-09-09T16:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure retirement policy?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-configure-retirement-policy/m-p/72589#M14806</link>
      <description>&lt;P&gt;I think that you're perhaps fundamentally misunderstanding the the retirement/freezing settings. I don't think that you should even attempt to achieve the goal of deleting data once it is more than 60 seconds old, and I doubt that you will be able to guarantee that no matter what you set maxDataSize or maxHotSpanSecs to.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2011 16:51:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-configure-retirement-policy/m-p/72589#M14806</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-09-09T16:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure retirement policy?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-configure-retirement-policy/m-p/72590#M14807</link>
      <description>&lt;P&gt;thanks for comments, of course 60 secs is not real life problem, I just wanted test it on lower time limit to make sure it is working properly.&lt;BR /&gt;&lt;BR /&gt;
In other words my goal is: make indexes age independently of their size or position in a bucket, avoiding rotation between hot,warm,cold (just delete when it is old).  &lt;/P&gt;

&lt;P&gt;My current version looks like this:  &lt;/P&gt;

&lt;P&gt;[main]&lt;BR /&gt;&lt;BR /&gt;
frozenTimePeriodInSecs = 60&lt;BR /&gt;&lt;BR /&gt;
rotatePeriodInSecs = 10&lt;BR /&gt;&lt;BR /&gt;
maxHotSpanSecs = 10  &lt;/P&gt;

&lt;P&gt;Current index contains only date &amp;gt; date.log which is old enough to be removed, but is not. Any suggestions will help. Thanks ...&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2011 08:20:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-configure-retirement-policy/m-p/72590#M14807</guid>
      <dc:creator>giovere</dc:creator>
      <dc:date>2011-09-12T08:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure retirement policy?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-configure-retirement-policy/m-p/72591#M14808</link>
      <description>&lt;P&gt;maxHotIdleSecs did the trick, so finally it looks like this:&lt;/P&gt;

&lt;P&gt;[main]&lt;BR /&gt;&lt;BR /&gt;
frozenTimePeriodInSecs = 10&lt;BR /&gt;&lt;BR /&gt;
rotatePeriodInSecs = 10&lt;BR /&gt;&lt;BR /&gt;
maxHotIdleSecs = 120  &lt;/P&gt;

&lt;P&gt;indexes spend 120 secs in hot buckets (starting from the last write action to a bucket), then rolled to warm spend 10 seconds there and finally they are deleted. If you sense any pitfall here, please let me know I'm quite new to all Splunk things.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2011 11:49:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-configure-retirement-policy/m-p/72591#M14808</guid>
      <dc:creator>giovere</dc:creator>
      <dc:date>2011-09-12T11:49:24Z</dc:date>
    </item>
  </channel>
</rss>

