<?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: Index Retention Time in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-Index-Retention-Time/m-p/495334#M84487</link>
    <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;This question is about buckets, and I would advise you to reffer the below document which will help you to understand what is the buckets and what is the time range and what is the rolling of buckets. &lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.0/Indexer/HowSplunkstoresindexes"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.0/Indexer/HowSplunkstoresindexes&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Coming to your question you need to either make it, on the time period or on the size of the bucket. Since you require 180 days of the data then you need to make changes in the indexes.conf&lt;/P&gt;

&lt;P&gt;frozenTimePeriodInSecs = 15552000 (180 Days) &lt;/P&gt;

&lt;P&gt;This is the time you are setting to make the data into frozen, you can read more details on this in the below document. &lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.0/Admin/Indexesconf"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.0/Admin/Indexesconf&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 30 Nov 2019 18:39:50 GMT</pubDate>
    <dc:creator>saramamurthy_sp</dc:creator>
    <dc:date>2019-11-30T18:39:50Z</dc:date>
    <item>
      <title>How to set up Index Retention Time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-Index-Retention-Time/m-p/495331#M84484</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I did some reading up on the hot, warm and cold buckets and data retention of indexes but I am not sure I 100% get it.&lt;/P&gt;
&lt;P&gt;What I am simply trying to do is to set my indexes to keep data for 180 days and then whatever data is older should be deleted. &lt;BR /&gt;There seems to be this frozen data timer but I am not able to find any settings based on time. every setting I see seemed to be based on how much storage the index\bucket uses.&lt;/P&gt;
&lt;P&gt;What am I missing here?&lt;/P&gt;
&lt;P&gt;Thank you&lt;BR /&gt;Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 13:25:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-Index-Retention-Time/m-p/495331#M84484</guid>
      <dc:creator>mc210274</dc:creator>
      <dc:date>2023-04-27T13:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Index Retention Time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-Index-Retention-Time/m-p/495332#M84485</link>
      <description>&lt;P&gt;You can set indexes to keep your data for 180 days,&lt;BR /&gt;
just need to configure  'frozenTimePeriodInSecs' setting in indexes.conf.&lt;/P&gt;

&lt;P&gt;frozenTimePeriodInSecs = &lt;BR /&gt;
The number of seconds after which indexed data rolls to frozen. meaning:  if "frozenTimePeriodInSecs" seconds have passed, data could prematurely roll to frozen&lt;/P&gt;

&lt;P&gt;Default: 188697600 (6 years)&lt;/P&gt;

&lt;P&gt;In your case: It is like-&lt;/P&gt;

&lt;P&gt;[]&lt;BR /&gt;
frozenTimePeriodInSecs = 15552000 (180 Days)&lt;/P&gt;</description>
      <pubDate>Sat, 30 Nov 2019 08:44:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-Index-Retention-Time/m-p/495332#M84485</guid>
      <dc:creator>pgoyal_splunk</dc:creator>
      <dc:date>2019-11-30T08:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Index Retention Time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-Index-Retention-Time/m-p/495333#M84486</link>
      <description>&lt;P&gt;Hi @mc210274,&lt;BR /&gt;
I think that you should read at &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.0/Indexer/Setaretirementandarchivingpolicy"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.0/Indexer/Setaretirementandarchivingpolicy&lt;/A&gt;&lt;BR /&gt;
In this pare is described that your data pass through three states:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Hot: data is just indexed and stored in a bucket that is modyfied time by time with new data;&lt;/LI&gt;
&lt;LI&gt;Warm: data are indexed from not much time and they are frequently used, buckets aren't modified by new data; &lt;/LI&gt;
&lt;LI&gt;Cold: data are indexed fron much time and they aren't frequently used, buckets aren't modified by new data.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Dimension of buckets in each state is configurable.&lt;/P&gt;

&lt;P&gt;After it's possible to discard data or store offline using a script.&lt;/P&gt;

&lt;P&gt;Anyway the data discard from cold is configurable in two ways:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;by retention period using (in your case) &lt;CODE&gt;frozenTimePeriodInSecs = 15552000&lt;/CODE&gt;;&lt;/LI&gt;
&lt;LI&gt;by index dimension using maxTotalDataSizeMB = .&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;You can find Infos about this at &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.0/Admin/Indexesconf"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.0/Admin/Indexesconf&lt;/A&gt; .&lt;/P&gt;

&lt;P&gt;If you use a retention policy, remember that discard is related to buckets, this means that a bucket is discarded when the newest event in the bucket exceeds the retention time, in othe words, do not be surprised if you find in an index events that exceed the retention period: this happens because they are in a bucket where there are also events that have not yet passed the retention period.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 30 Nov 2019 15:48:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-Index-Retention-Time/m-p/495333#M84486</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-11-30T15:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Index Retention Time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-Index-Retention-Time/m-p/495334#M84487</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;This question is about buckets, and I would advise you to reffer the below document which will help you to understand what is the buckets and what is the time range and what is the rolling of buckets. &lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.0/Indexer/HowSplunkstoresindexes"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.0/Indexer/HowSplunkstoresindexes&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Coming to your question you need to either make it, on the time period or on the size of the bucket. Since you require 180 days of the data then you need to make changes in the indexes.conf&lt;/P&gt;

&lt;P&gt;frozenTimePeriodInSecs = 15552000 (180 Days) &lt;/P&gt;

&lt;P&gt;This is the time you are setting to make the data into frozen, you can read more details on this in the below document. &lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.0/Admin/Indexesconf"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.0/Admin/Indexesconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Nov 2019 18:39:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-Index-Retention-Time/m-p/495334#M84487</guid>
      <dc:creator>saramamurthy_sp</dc:creator>
      <dc:date>2019-11-30T18:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Index Retention Time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-Index-Retention-Time/m-p/495335#M84488</link>
      <description>&lt;P&gt;Thanks everybody - these answers are very helpful.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 03:26:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-Index-Retention-Time/m-p/495335#M84488</guid>
      <dc:creator>mc210274</dc:creator>
      <dc:date>2019-12-05T03:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Index Retention Time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-Index-Retention-Time/m-p/641540#M109402</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/210000"&gt;@mc210274&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated by all the contributors &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 06:52:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-Index-Retention-Time/m-p/641540#M109402</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-04-27T06:52:47Z</dc:date>
    </item>
  </channel>
</rss>

