<?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: How do I configure a data retention policy and a working script for my indexes? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-configure-a-data-retention-policy-and-a-working-script/m-p/223404#M43750</link>
    <description>&lt;P&gt;Sunnyparmar,&lt;/P&gt;

&lt;P&gt;You have to set the frozenTimePeriodInSecs =  property for each index.  Data will be searchable for the time you specified. And If you do not specify a coldToFrozenScript, data is deleted when rolled to frozen.&lt;/P&gt;

&lt;P&gt;[main]&lt;/P&gt;

&lt;H1&gt;90 days retention&lt;/H1&gt;

&lt;P&gt;frozenTimePeriodInSecs = 7776000&lt;BR /&gt;
coldToFrozenScript = "$SPLUNK_HOME/bin/python" "$SPLUNK_HOME/bin/myColdToFrozenScript.py"&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 08:24:45 GMT</pubDate>
    <dc:creator>alemarzu</dc:creator>
    <dc:date>2020-09-29T08:24:45Z</dc:date>
    <item>
      <title>How do I configure a data retention policy and a working script for my indexes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-configure-a-data-retention-policy-and-a-working-script/m-p/223402#M43748</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I want to create a data retention policy for my all indexes, but I don't know how to configure this:&lt;BR /&gt;
 - coldToFrozenDir = "&amp;lt;path to frozen archive&amp;gt;"&lt;BR /&gt;
 - coldToFrozenScript =["&amp;lt;path to program that runs script&amp;gt;"] "&amp;lt;path to script&amp;gt;"&lt;BR /&gt;
But how do we add this in the indexes.conf file? Can somebody give me the idea of doing this?&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 12:41:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-configure-a-data-retention-policy-and-a-working-script/m-p/223402#M43748</guid>
      <dc:creator>sunnyparmar</dc:creator>
      <dc:date>2016-01-12T12:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I configure a data retention policy and a working script for my indexes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-configure-a-data-retention-policy-and-a-working-script/m-p/223403#M43749</link>
      <description>&lt;P&gt;Reference :&lt;/P&gt;

&lt;P&gt;&lt;A href="http://wiki.splunk.com/Deploy:BucketRotationAndRetention"&gt;http://wiki.splunk.com/Deploy:BucketRotationAndRetention&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/Indexer/Setaretirementandarchivingpolicy"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.0/Indexer/Setaretirementandarchivingpolicy&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1/Admin/indexesconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.1/Admin/indexesconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 13:03:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-configure-a-data-retention-policy-and-a-working-script/m-p/223403#M43749</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2016-01-12T13:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I configure a data retention policy and a working script for my indexes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-configure-a-data-retention-policy-and-a-working-script/m-p/223404#M43750</link>
      <description>&lt;P&gt;Sunnyparmar,&lt;/P&gt;

&lt;P&gt;You have to set the frozenTimePeriodInSecs =  property for each index.  Data will be searchable for the time you specified. And If you do not specify a coldToFrozenScript, data is deleted when rolled to frozen.&lt;/P&gt;

&lt;P&gt;[main]&lt;/P&gt;

&lt;H1&gt;90 days retention&lt;/H1&gt;

&lt;P&gt;frozenTimePeriodInSecs = 7776000&lt;BR /&gt;
coldToFrozenScript = "$SPLUNK_HOME/bin/python" "$SPLUNK_HOME/bin/myColdToFrozenScript.py"&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:24:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-configure-a-data-retention-policy-and-a-working-script/m-p/223404#M43750</guid>
      <dc:creator>alemarzu</dc:creator>
      <dc:date>2020-09-29T08:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do I configure a data retention policy and a working script for my indexes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-configure-a-data-retention-policy-and-a-working-script/m-p/223405#M43751</link>
      <description>&lt;P&gt;thanks.. will do the same...&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 13:50:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-configure-a-data-retention-policy-and-a-working-script/m-p/223405#M43751</guid>
      <dc:creator>sunnyparmar</dc:creator>
      <dc:date>2016-01-12T13:50:45Z</dc:date>
    </item>
  </channel>
</rss>

