<?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: When is old data deleted from indexes?How does frozenTimePeriodInSecs get applied in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/When-is-old-data-deleted-from-indexes-How-does/m-p/66869#M13425</link>
    <description>&lt;P&gt;Hi @ kristian.kolb &lt;/P&gt;

&lt;P&gt;You have mentioned that "&lt;STRONG&gt;Buckets are only frozen (deleted/archived) when the newest event in the bucket is older than frozenTimePeriodInSecs.&lt;/STRONG&gt;"&lt;/P&gt;

&lt;P&gt;The newest event keeps on changing every second. &lt;BR /&gt;
How can we determine when will the bucket gets deleted. &lt;BR /&gt;
does the retention policy apply only on the cold buckets. What if the warm buckets have data older than 60 days and it has not rolled to cold because it hasn't reached the rolling limit of the bucket. &lt;/P&gt;</description>
    <pubDate>Mon, 18 Dec 2017 20:37:16 GMT</pubDate>
    <dc:creator>nawazns5038</dc:creator>
    <dc:date>2017-12-18T20:37:16Z</dc:date>
    <item>
      <title>When is old data deleted from indexes?How does frozenTimePeriodInSecs get applied</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/When-is-old-data-deleted-from-indexes-How-does/m-p/66864#M13420</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I have an index that has its frozenTimePeriodInSecs set to 90 days. When inspect that index with the rest command I see that the index has events from 2008:&lt;/P&gt;

&lt;P&gt;| rest /services/data/indexes | search title=xx | eval now=now() | convert ctime(now) as now |fields title,frozenTimePeriodInSecs,minTime,now&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;title     frozenTimePeriodInSecs minTime                   now 
xx         7776000                2008-04-01T22:00:29+0200 06/18/2013 12:39:49
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When i search for the events from 2008:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=xx | convert ctime(_indextime) as indextime | eval delta=_indextime-_time | table _time,indextime,delta
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I can see that the indextime of the old events is within the 90 day span of the index.&lt;/P&gt;

&lt;P&gt;Is there a quarantine applied to recently indexed events with a funny date? I can't imagine that the indextime is relevant for the frozenTimePeriodInSecs. Does anyone know how this setting is applied?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2013 10:52:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/When-is-old-data-deleted-from-indexes-How-does/m-p/66864#M13420</guid>
      <dc:creator>chris</dc:creator>
      <dc:date>2013-06-18T10:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: When is old data deleted from indexes?How does frozenTimePeriodInSecs get applied</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/When-is-old-data-deleted-from-indexes-How-does/m-p/66865#M13421</link>
      <description>&lt;P&gt;Operations on indexed data is performed on the bucket level, not on individual events within a bucket. Buckets are only frozen (deleted/archived) when the &lt;EM&gt;newest&lt;/EM&gt; event in the bucket is older than &lt;CODE&gt;frozenTimePeriodInSecs&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Thus, you might have a bucket that contains both new and really old data, but the really old data won't be frozen until all of the data in the bucket is 'too old'. Perhaps you imported some old historical data (which would explain the diff between &lt;CODE&gt;_time&lt;/CODE&gt; and &lt;CODE&gt;_indextime&lt;/CODE&gt; for some events. Or perhaps your timestamps were misinterpreted (to an older date). &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;_indextime&lt;/CODE&gt; however, is not involved/considered with &lt;CODE&gt;frozenTimePeriodInSecs&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2013 12:20:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/When-is-old-data-deleted-from-indexes-How-does/m-p/66865#M13421</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-06-18T12:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: When is old data deleted from indexes?How does frozenTimePeriodInSecs get applied</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/When-is-old-data-deleted-from-indexes-How-does/m-p/66866#M13422</link>
      <description>&lt;P&gt;Hi chris,&lt;/P&gt;

&lt;P&gt;have you checked splunkd.log for any message form &lt;CODE&gt;BucketMover&lt;/CODE&gt; component of &lt;CODE&gt;splunkd&lt;/CODE&gt;? &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*splunkd.log* *BucketMover* NOT INFO
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Maybe you get some ideas from them.&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2013 12:25:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/When-is-old-data-deleted-from-indexes-How-does/m-p/66866#M13422</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2013-06-18T12:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: When is old data deleted from indexes?How does frozenTimePeriodInSecs get applied</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/When-is-old-data-deleted-from-indexes-How-does/m-p/66867#M13423</link>
      <description>&lt;P&gt;dammit /K you're too fast..... &lt;BR /&gt;
you answered while I was typing my answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2013 12:26:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/When-is-old-data-deleted-from-indexes-How-does/m-p/66867#M13423</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2013-06-18T12:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: When is old data deleted from indexes?How does frozenTimePeriodInSecs get applied</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/When-is-old-data-deleted-from-indexes-How-does/m-p/66868#M13424</link>
      <description>&lt;P&gt;Thank Kristian&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2013 15:55:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/When-is-old-data-deleted-from-indexes-How-does/m-p/66868#M13424</guid>
      <dc:creator>chris</dc:creator>
      <dc:date>2013-06-18T15:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: When is old data deleted from indexes?How does frozenTimePeriodInSecs get applied</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/When-is-old-data-deleted-from-indexes-How-does/m-p/66869#M13425</link>
      <description>&lt;P&gt;Hi @ kristian.kolb &lt;/P&gt;

&lt;P&gt;You have mentioned that "&lt;STRONG&gt;Buckets are only frozen (deleted/archived) when the newest event in the bucket is older than frozenTimePeriodInSecs.&lt;/STRONG&gt;"&lt;/P&gt;

&lt;P&gt;The newest event keeps on changing every second. &lt;BR /&gt;
How can we determine when will the bucket gets deleted. &lt;BR /&gt;
does the retention policy apply only on the cold buckets. What if the warm buckets have data older than 60 days and it has not rolled to cold because it hasn't reached the rolling limit of the bucket. &lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 20:37:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/When-is-old-data-deleted-from-indexes-How-does/m-p/66869#M13425</guid>
      <dc:creator>nawazns5038</dc:creator>
      <dc:date>2017-12-18T20:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: When is old data deleted from indexes?How does frozenTimePeriodInSecs get applied</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/When-is-old-data-deleted-from-indexes-How-does/m-p/66870#M13426</link>
      <description>&lt;P&gt;May be this will give you similar info&lt;BR /&gt;
| dbinspect index=*&lt;BR /&gt;
 | rename state as category &lt;BR /&gt;
 | stats min(startEpoch) as earliestTime max(endEpoch) as latestTime sum(sizeOnDiskMB) as MB by index category &lt;BR /&gt;
 | convert timeformat="%m/%d/%Y" ctime(earliestTime) as earliestTime ctime(latestTime) as latestTime&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 01:32:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/When-is-old-data-deleted-from-indexes-How-does/m-p/66870#M13426</guid>
      <dc:creator>Krishnagrandhi</dc:creator>
      <dc:date>2019-06-06T01:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: When is old data deleted from indexes?How does frozenTimePeriodInSecs get applied</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/When-is-old-data-deleted-from-indexes-How-does/m-p/66871#M13427</link>
      <description>&lt;P&gt;| dbinspect index=* &lt;BR /&gt;
 | rename state as category &lt;BR /&gt;
 | stats min(startEpoch) as earliestTime max(endEpoch) as latestTime sum(sizeOnDiskMB) as MB by index category &lt;BR /&gt;
 | convert timeformat="%m/%d/%Y" ctime(earliestTime) as earliestTime ctime(latestTime) as latestTime&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 01:33:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/When-is-old-data-deleted-from-indexes-How-does/m-p/66871#M13427</guid>
      <dc:creator>Krishnagrandhi</dc:creator>
      <dc:date>2019-06-06T01:33:05Z</dc:date>
    </item>
  </channel>
</rss>

