<?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 Retention Policy of an Index in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Retention-Policy-of-an-Index/m-p/459168#M6184</link>
    <description>&lt;P&gt;Hi , i am currently setting up the retention policy of an index for data roll over to frozen but i am  currently setting data roll over to frozen after 6 months but i am intrested to move data from hot to warm after 2 months and after warm to cold after 3 months then lastly 6 months to frozen curretly below is my setting can you please suggest what modify i need to set for data move from hot to warm and warm to cold.&lt;/P&gt;

&lt;P&gt;Indexes.conf&lt;BR /&gt;
[test]&lt;BR /&gt;
homePath = $SPLUNK_DB/test/db&lt;BR /&gt;
ColdPath = $SPLUNK_DB/test/colddb&lt;BR /&gt;
thawedPath = $SPLUNK_DB/test/thaweddb&lt;BR /&gt;
repFactor = auto&lt;BR /&gt;
coldToFrozenDir = $SPLUNK_DB/test/frozendb&lt;BR /&gt;
coldToFrozenInSecs = 15552000&lt;/P&gt;

&lt;P&gt;So after 6 months my data will roll into frozen , what extra setting i need to made above to make data roll over from hot to warm in 2 months and warm to cold after 2 months and after that will roll into frozen.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 00:34:07 GMT</pubDate>
    <dc:creator>Prakash493</dc:creator>
    <dc:date>2020-09-30T00:34:07Z</dc:date>
    <item>
      <title>Retention Policy of an Index</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Retention-Policy-of-an-Index/m-p/459168#M6184</link>
      <description>&lt;P&gt;Hi , i am currently setting up the retention policy of an index for data roll over to frozen but i am  currently setting data roll over to frozen after 6 months but i am intrested to move data from hot to warm after 2 months and after warm to cold after 3 months then lastly 6 months to frozen curretly below is my setting can you please suggest what modify i need to set for data move from hot to warm and warm to cold.&lt;/P&gt;

&lt;P&gt;Indexes.conf&lt;BR /&gt;
[test]&lt;BR /&gt;
homePath = $SPLUNK_DB/test/db&lt;BR /&gt;
ColdPath = $SPLUNK_DB/test/colddb&lt;BR /&gt;
thawedPath = $SPLUNK_DB/test/thaweddb&lt;BR /&gt;
repFactor = auto&lt;BR /&gt;
coldToFrozenDir = $SPLUNK_DB/test/frozendb&lt;BR /&gt;
coldToFrozenInSecs = 15552000&lt;/P&gt;

&lt;P&gt;So after 6 months my data will roll into frozen , what extra setting i need to made above to make data roll over from hot to warm in 2 months and warm to cold after 2 months and after that will roll into frozen.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:34:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Retention-Policy-of-an-Index/m-p/459168#M6184</guid>
      <dc:creator>Prakash493</dc:creator>
      <dc:date>2020-09-30T00:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Retention Policy of an Index</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Retention-Policy-of-an-Index/m-p/459169#M6185</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Let me explain first how splunk roll data from Hot to Warm and from Warm to Cold and from Cold to Frozen. Below scenario explain bucket roll if you are not using volumes.&lt;/P&gt;

&lt;P&gt;1.) Hot to Warm Bucket roll depends on 2-3 parameters. First splunk looks for &lt;CODE&gt;maxDataSize&lt;/CODE&gt; (Default is auto means 750MB) and &lt;CODE&gt;maxHotSpanSecs&lt;/CODE&gt; (Default is 90 days) in indexes.conf if any of the parameter reach it's limit then bucket will roll from hot to warm. If any of the limit is not reached and hot bucket will be idle then it will roll to warm when &lt;CODE&gt;maxHotIdleSecs&lt;/CODE&gt; (Default is 90 days) limit will reach.&lt;/P&gt;

&lt;P&gt;2.) Warm to Cold buckets roll depends on &lt;CODE&gt;maxWarmDBCount&lt;/CODE&gt; (Default is 300 warm buckets) when index reaches &lt;CODE&gt;maxWarmDBCount&lt;/CODE&gt; it will roll from warm to cold.&lt;/P&gt;

&lt;P&gt;3.) Cold to Frozen roll depends on &lt;CODE&gt;maxTotalDataSizeMB&lt;/CODE&gt; (Default is 500000 MB) and &lt;CODE&gt;frozenTimePeriodInSecs&lt;/CODE&gt; (Default is 6 years) whichever hit first. &lt;CODE&gt;frozenTimePeriodInSecs&lt;/CODE&gt; applies to all events in single bucket so until and unless all events in bucket are older than &lt;CODE&gt;frozenTimePeriodInSecs&lt;/CODE&gt; bucket will not be removed.&lt;/P&gt;

&lt;P&gt;Based on above parameter you can set these parameter as per your requirement but you will not able to achieve exact rolling of bucket after X months from Hot-&amp;gt;Warm-&amp;gt;Cold because few of the parameter is depend on number of bucket instead of time and if data is coming to indexer does not parse timestamp properly then you will end up with many buckets.&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 12:00:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Retention-Policy-of-an-Index/m-p/459169#M6185</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-05-15T12:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Retention Policy of an Index</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Retention-Policy-of-an-Index/m-p/459170#M6186</link>
      <description>&lt;P&gt;Thank you so much for clarification it really helps , if i just want to set my data will roll over to frozen after 6 months so is my above stanza is correct ?&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 12:27:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Retention-Policy-of-an-Index/m-p/459170#M6186</guid>
      <dc:creator>Prakash493</dc:creator>
      <dc:date>2019-05-15T12:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Retention Policy of an Index</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Retention-Policy-of-an-Index/m-p/459171#M6187</link>
      <description>&lt;P&gt;After 6 months do you want to remove data from Splunk or do you want to move bucket to archived directory ?&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 12:35:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Retention-Policy-of-an-Index/m-p/459171#M6187</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-05-15T12:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Retention Policy of an Index</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Retention-Policy-of-an-Index/m-p/459172#M6188</link>
      <description>&lt;P&gt;Yes please tell for both the cases if i want to archieve what i have to add and if i want to remove what i need to add will be helpfull.&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 12:37:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Retention-Policy-of-an-Index/m-p/459172#M6188</guid>
      <dc:creator>Prakash493</dc:creator>
      <dc:date>2019-05-15T12:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Retention Policy of an Index</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Retention-Policy-of-an-Index/m-p/459173#M6189</link>
      <description>&lt;P&gt;1.) Below configuration to remove data from Splunk after 6 months but this will create many buckets so use with &lt;STRONG&gt;caution&lt;/STRONG&gt; because I don't know how much data will come to test index.&lt;/P&gt;

&lt;P&gt;indexes.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[test]
homePath = $SPLUNK_DB/test/db
ColdPath = $SPLUNK_DB/test/colddb
thawedPath = $SPLUNK_DB/test/thaweddb
repFactor = auto
maxHotSpanSecs = 86400
frozenTimePeriodInSecs = 5184000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;2.) Below configuration to roll data into archived directory, this will also generate many buckets.&lt;/P&gt;

&lt;P&gt;indexes.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[test]
homePath = $SPLUNK_DB/test/db
ColdPath = $SPLUNK_DB/test/colddb
thawedPath = $SPLUNK_DB/test/thaweddb
repFactor = auto
maxHotSpanSecs = 86400
frozenTimePeriodInSecs = 5184000
coldToFrozenDir = &amp;lt; your archived directory path&amp;gt;
coldToFrozenScript = &amp;lt; your path to script &amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 May 2019 12:42:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Retention-Policy-of-an-Index/m-p/459173#M6189</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-05-15T12:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Retention Policy of an Index</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Retention-Policy-of-an-Index/m-p/459174#M6190</link>
      <description>&lt;P&gt;Thank you so much  will solve my issue&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 12:44:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Retention-Policy-of-an-Index/m-p/459174#M6190</guid>
      <dc:creator>Prakash493</dc:creator>
      <dc:date>2019-05-15T12:44:55Z</dc:date>
    </item>
  </channel>
</rss>

