<?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: Retention policy for index not working as intended in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Retention-policy-for-index-not-working-as-intended/m-p/136274#M28075</link>
    <description>&lt;P&gt;I was more thinking about &lt;CODE&gt;maxDataSize&lt;/CODE&gt;. &lt;BR /&gt;
&lt;CODE&gt;maxHotSpanSecs&lt;/CODE&gt; might work too, but I think I would prefer  the combination of &lt;CODE&gt;frozenTimePeriodInSecs&lt;/CODE&gt; and &lt;CODE&gt;maxDataSize&lt;/CODE&gt;. I have not played around with this extensively, so do not take my advice as Divine Truth. &lt;/P&gt;

&lt;P&gt;Oh, and the freeze checks are controlled through the &lt;CODE&gt;rotatePeriodInSecs&lt;/CODE&gt; parameter.&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
    <pubDate>Wed, 05 Feb 2014 12:18:01 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2014-02-05T12:18:01Z</dc:date>
    <item>
      <title>Retention policy for index not working as intended</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Retention-policy-for-index-not-working-as-intended/m-p/136271#M28072</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a index which should only have data for the past 3 hours. I've set the frozenTimePeriodInSecs to 10800. I activated the configuration on the 2nd of February, but data are still present from that date.  I think I need to reduce the size of the buckets. Could you please recommend which parameters I should set to accomplish a retention policy of 3 hours? The size of the index is 28 MB as of now. &lt;/P&gt;

&lt;P&gt;[s02683_minesider_prod_audit]&lt;BR /&gt;
coldPath = $SPLUNK_DB/s02683_minesider_prod_audit/colddb&lt;BR /&gt;
homePath = $SPLUNK_DB/s02683_minesider_prod_audit/db&lt;BR /&gt;
thawedPath = $SPLUNK_DB/s02683_minesider_prod_audit/thaweddb&lt;BR /&gt;
frozenTimePeriodInSecs = 10800&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:47:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Retention-policy-for-index-not-working-as-intended/m-p/136271#M28072</guid>
      <dc:creator>annebeate</dc:creator>
      <dc:date>2020-09-28T15:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Retention policy for index not working as intended</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Retention-policy-for-index-not-working-as-intended/m-p/136272#M28073</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;You know that splunk will only freeze (i.e. delete) a bucket when the &lt;EM&gt;newest&lt;/EM&gt; event in that bucket is &lt;EM&gt;older than&lt;/EM&gt; your retention limit. Unless you have very high volume of traffic, you need to set your bucket size rather small. &lt;/P&gt;

&lt;P&gt;For example, if your index receives 60 MB of logs per hour, you could set your bucket size to 10 MB. With average compression rates (~50%) you should have about 20 minutes worth of log data per bucket (as long as you only have one hot bucket at a time). Given that you only freeze when the newest event is too old, the oldest events in your index should be 3h20m at any given time.&lt;/P&gt;

&lt;P&gt;However, working with so small indexes and buckets is not what Splunk was engineered for, and I don't know how often freeze checks are actually made. Also, I think that from a performance perspective, larger buckets (&amp;gt;750 MB) are more efficient, but then again, your data set seems rather small, so that perhaps has less impact in your case.&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2014 09:23:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Retention-policy-for-index-not-working-as-intended/m-p/136272#M28073</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2014-02-04T09:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Retention policy for index not working as intended</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Retention-policy-for-index-not-working-as-intended/m-p/136273#M28074</link>
      <description>&lt;P&gt;Thanks for your reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Which parameter do you recommend that I use: maxHotSpanSecs or homePath.maxDataSizeMB?&lt;/P&gt;

&lt;P&gt;homePath.maxDataSizeMB = &lt;NONNEGATIVE integer=""&gt;&lt;BR /&gt;
    * Limits the size of the hot/warm DB to the maximum specified size, in MB. &lt;/NONNEGATIVE&gt;&lt;/P&gt;

&lt;P&gt;maxHotSpanSecs = &lt;POSITIVE integer=""&gt;&lt;BR /&gt;
    * Upper bound of timespan of hot/warm buckets in seconds.&lt;BR /&gt;
    * Defaults to 7776000 seconds (90 days).&lt;/POSITIVE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2014 07:51:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Retention-policy-for-index-not-working-as-intended/m-p/136273#M28074</guid>
      <dc:creator>annebeate</dc:creator>
      <dc:date>2014-02-05T07:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Retention policy for index not working as intended</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Retention-policy-for-index-not-working-as-intended/m-p/136274#M28075</link>
      <description>&lt;P&gt;I was more thinking about &lt;CODE&gt;maxDataSize&lt;/CODE&gt;. &lt;BR /&gt;
&lt;CODE&gt;maxHotSpanSecs&lt;/CODE&gt; might work too, but I think I would prefer  the combination of &lt;CODE&gt;frozenTimePeriodInSecs&lt;/CODE&gt; and &lt;CODE&gt;maxDataSize&lt;/CODE&gt;. I have not played around with this extensively, so do not take my advice as Divine Truth. &lt;/P&gt;

&lt;P&gt;Oh, and the freeze checks are controlled through the &lt;CODE&gt;rotatePeriodInSecs&lt;/CODE&gt; parameter.&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2014 12:18:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Retention-policy-for-index-not-working-as-intended/m-p/136274#M28075</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2014-02-05T12:18:01Z</dc:date>
    </item>
  </channel>
</rss>

