<?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: Remove data when it ages in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Remove-data-when-it-ages/m-p/83378#M17323</link>
    <description>&lt;P&gt;Hi Shangshin&lt;/P&gt;

&lt;P&gt;Keeping only one hour of data is pretty short, what is your use case ?&lt;/P&gt;

&lt;P&gt;A short &lt;STRONG&gt;frozenTimePeriodInSecs&lt;/STRONG&gt; will not be enough to ensure that the data is frozen quickly.&lt;BR /&gt;
This is because the events are written in buckets, a bucket have a certain span of time, or a maximum size. The bucket being written are in hot state, and roll to warm (or cold) state when they became read only. But only warm or cold state buckets can actually be frozen, and only if all the events their contains are older than the frozenTimePeriodInSecs or the maximum size of the index is reached. Then the ones containing the oldest events will be frozen.&lt;/P&gt;

&lt;P&gt;The &lt;STRONG&gt;maxHotSpanSecs&lt;/STRONG&gt; parameter can be used to limit the span times for your buckets, and force them to roll from hot to warm more often. Then the frozenTimePeriodInSecs will kick in.&lt;/P&gt;

&lt;P&gt;see &lt;A href="http://wiki.splunk.com/Deploy:BucketRotationAndRetention"&gt;http://wiki.splunk.com/Deploy:BucketRotationAndRetention&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/Admin/Indexesconf"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/Admin/Indexesconf&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jun 2012 21:24:09 GMT</pubDate>
    <dc:creator>yannK</dc:creator>
    <dc:date>2012-06-25T21:24:09Z</dc:date>
    <item>
      <title>Remove data when it ages</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-data-when-it-ages/m-p/83377#M17322</link>
      <description>&lt;P&gt;Hi, I saw &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/Indexer/Setaretirementandarchivingpolicy"&gt;the doc&lt;/A&gt; on how to remove data when it ages.&lt;BR /&gt;
Most of my log data goes to the default index db which is "main" &lt;/P&gt;

&lt;P&gt;So assuming I want to index data for ONLY the latest one hour, I added these 2 lines in /etc/system/default/indexes.conf &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[main]
frozenTimePeriodInSecs = 3600
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;On top of that I also created a new file /etc/system/local/indexes.conf with the same 2 lines.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[main]
frozenTimePeriodInSecs = 3600
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then I restarted splunk server but I still saw data older than 1 hour ago. &lt;/P&gt;

&lt;P&gt;Can anyone shed some light on it? Thank you!!!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jun 2012 20:33:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-data-when-it-ages/m-p/83377#M17322</guid>
      <dc:creator>shangshin</dc:creator>
      <dc:date>2012-06-25T20:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Remove data when it ages</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-data-when-it-ages/m-p/83378#M17323</link>
      <description>&lt;P&gt;Hi Shangshin&lt;/P&gt;

&lt;P&gt;Keeping only one hour of data is pretty short, what is your use case ?&lt;/P&gt;

&lt;P&gt;A short &lt;STRONG&gt;frozenTimePeriodInSecs&lt;/STRONG&gt; will not be enough to ensure that the data is frozen quickly.&lt;BR /&gt;
This is because the events are written in buckets, a bucket have a certain span of time, or a maximum size. The bucket being written are in hot state, and roll to warm (or cold) state when they became read only. But only warm or cold state buckets can actually be frozen, and only if all the events their contains are older than the frozenTimePeriodInSecs or the maximum size of the index is reached. Then the ones containing the oldest events will be frozen.&lt;/P&gt;

&lt;P&gt;The &lt;STRONG&gt;maxHotSpanSecs&lt;/STRONG&gt; parameter can be used to limit the span times for your buckets, and force them to roll from hot to warm more often. Then the frozenTimePeriodInSecs will kick in.&lt;/P&gt;

&lt;P&gt;see &lt;A href="http://wiki.splunk.com/Deploy:BucketRotationAndRetention"&gt;http://wiki.splunk.com/Deploy:BucketRotationAndRetention&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/Admin/Indexesconf"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/Admin/Indexesconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jun 2012 21:24:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-data-when-it-ages/m-p/83378#M17323</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2012-06-25T21:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Remove data when it ages</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-data-when-it-ages/m-p/83379#M17324</link>
      <description>&lt;P&gt;Thanks for detail explanation. It's very helpful.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2012 18:53:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-data-when-it-ages/m-p/83379#M17324</guid>
      <dc:creator>shangshin</dc:creator>
      <dc:date>2012-06-26T18:53:52Z</dc:date>
    </item>
  </channel>
</rss>

