<?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: Delay in Splunk purging old events in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Delay-in-Splunk-purging-old-events/m-p/323408#M60232</link>
    <description>&lt;P&gt;Hi @danielwan,&lt;/P&gt;

&lt;P&gt;Based on documentation of indexes.conf, index will remove data from index based on 2 parameters &lt;CODE&gt;frozenTimePeriodInSecs&lt;/CODE&gt; OR &lt;CODE&gt;maxTotalDataSizeMB&lt;/CODE&gt; whichever hit first.&lt;/P&gt;

&lt;P&gt;Now splunk stores data in hot, warm and cold buckets. In your case when you set &lt;CODE&gt;frozenTimePeriodInSecs&lt;/CODE&gt; to &lt;CODE&gt;2592000&lt;/CODE&gt; it will remove those warm or cold bucket which will have all events older than &lt;CODE&gt;frozenTimePeriodInSecs&lt;/CODE&gt; . &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;IMPORTANT: Every event in the DB must be older than frozenTimePeriodInSecs
  before it will roll.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So let's day one of the bucket contains earliest event 45 days older and latest event is 25 days older then this bucket(DB) will not remove and when you will search you will able to search data older than 30 days from that bucket, this bucket will remove when all events in that bucket are older than &lt;CODE&gt;frozenTimePeriodInSecs&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Now when you restart splunk it will roll hot bucket to warm and warm to cold based on your indexes.conf configuration and in this case if any hot bucket contain events older than 30 days then it will roll hot bucket to warm and then immedeiatly remove that bucket and due to that your index size decrease suddenly.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Harshil&lt;/P&gt;</description>
    <pubDate>Mon, 23 Oct 2017 13:23:24 GMT</pubDate>
    <dc:creator>harsmarvania57</dc:creator>
    <dc:date>2017-10-23T13:23:24Z</dc:date>
    <item>
      <title>Delay in Splunk purging old events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Delay-in-Splunk-purging-old-events/m-p/323407#M60231</link>
      <description>&lt;P&gt;My  Splunk is a single Splunk 6.5.x instance, which needs to retain the last 30 days events, so I configured frozenTimePeriodInSecs = 2592000 in indexes.conf. But it does not work fine all the time.  &lt;/P&gt;

&lt;P&gt;What I could tell is my indexes keep growing, and search with "latest=-30d" shows up some events sometimes. When the index size reaches the maximum index size which was configured in the index creation, or when I restart Splunk instance, the index size decreases to nearly half of the max index size. &lt;/P&gt;

&lt;P&gt;Is there any idea of why there is so significant delay for Splunk purging old events? and how to fix it?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 13:05:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Delay-in-Splunk-purging-old-events/m-p/323407#M60231</guid>
      <dc:creator>danielwan</dc:creator>
      <dc:date>2017-10-23T13:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Delay in Splunk purging old events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Delay-in-Splunk-purging-old-events/m-p/323408#M60232</link>
      <description>&lt;P&gt;Hi @danielwan,&lt;/P&gt;

&lt;P&gt;Based on documentation of indexes.conf, index will remove data from index based on 2 parameters &lt;CODE&gt;frozenTimePeriodInSecs&lt;/CODE&gt; OR &lt;CODE&gt;maxTotalDataSizeMB&lt;/CODE&gt; whichever hit first.&lt;/P&gt;

&lt;P&gt;Now splunk stores data in hot, warm and cold buckets. In your case when you set &lt;CODE&gt;frozenTimePeriodInSecs&lt;/CODE&gt; to &lt;CODE&gt;2592000&lt;/CODE&gt; it will remove those warm or cold bucket which will have all events older than &lt;CODE&gt;frozenTimePeriodInSecs&lt;/CODE&gt; . &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;IMPORTANT: Every event in the DB must be older than frozenTimePeriodInSecs
  before it will roll.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So let's day one of the bucket contains earliest event 45 days older and latest event is 25 days older then this bucket(DB) will not remove and when you will search you will able to search data older than 30 days from that bucket, this bucket will remove when all events in that bucket are older than &lt;CODE&gt;frozenTimePeriodInSecs&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Now when you restart splunk it will roll hot bucket to warm and warm to cold based on your indexes.conf configuration and in this case if any hot bucket contain events older than 30 days then it will roll hot bucket to warm and then immedeiatly remove that bucket and due to that your index size decrease suddenly.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Harshil&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 13:23:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Delay-in-Splunk-purging-old-events/m-p/323408#M60232</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2017-10-23T13:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Delay in Splunk purging old events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Delay-in-Splunk-purging-old-events/m-p/323409#M60233</link>
      <description>&lt;P&gt;Hi danielwan,&lt;BR /&gt;
event deletion is managed at bucket level, so when the latest event of a bucket is out of retention period bucket will be frozen or deleted.&lt;BR /&gt;
This means that you can have online some events older that the retention period.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 13:56:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Delay-in-Splunk-purging-old-events/m-p/323409#M60233</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-10-23T13:56:17Z</dc:date>
    </item>
  </channel>
</rss>

