<?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: Data retention in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Data-retention/m-p/485195#M193541</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213478"&gt;@dani9&lt;/a&gt;,&lt;BR /&gt;
to set a data retention for an index, you have to work only on Indexers, or (if you have an Indexers cluster) on Master Node, never Search Heads.&lt;BR /&gt;
You have to create an indexes.conf file in $SPLUNK_HOME/system/local (never default!), or better, create a dedicated Add-On (called e.g. TA_indexers) in with there's this file to insert in $SPLUNK_HOME/etc/apps.&lt;/P&gt;

&lt;P&gt;To set data retention you have to insert in indexes.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[index_name]
frozenTimePeriodInSecs = integer
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Remember that if you add or modify a conbf file you have to restart Splunk.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;frozenTimePeriodInSecs = &amp;lt;nonnegative_integer&amp;gt;
* The number of seconds after which indexed data rolls to frozen.
* If you do not specify a 'coldToFrozenScript', data is deleted when rolled to   frozen.
* NOTE: Every event in a bucket must be older than 'frozenTimePeriodInSecs' seconds before the bucket rolls to frozen.
* The highest legal value is 4294967295.
* Default: 188697600 (6 years)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;for more info see at:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.0/Admin/Indexesconf" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.0/Admin/Indexesconf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.0/Indexer/Setaretirementandarchivingpolicy" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.0/Indexer/Setaretirementandarchivingpolicy&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 02:59:06 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2020-09-30T02:59:06Z</dc:date>
    <item>
      <title>Data retention</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Data-retention/m-p/485194#M193540</link>
      <description>&lt;P&gt;Where must the data retention be settled in indexer or in my case distributed environment in search head?&lt;BR /&gt;
Then seen that it must be setted in file indexes.conf but it S present just in etc/system/default but we know we don't have to edit files in default folder how can I do that? Do I create a file in local and after splunk will think to update the default folder? &lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 13:57:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Data-retention/m-p/485194#M193540</guid>
      <dc:creator>dani9</dc:creator>
      <dc:date>2019-11-14T13:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Data retention</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Data-retention/m-p/485195#M193541</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213478"&gt;@dani9&lt;/a&gt;,&lt;BR /&gt;
to set a data retention for an index, you have to work only on Indexers, or (if you have an Indexers cluster) on Master Node, never Search Heads.&lt;BR /&gt;
You have to create an indexes.conf file in $SPLUNK_HOME/system/local (never default!), or better, create a dedicated Add-On (called e.g. TA_indexers) in with there's this file to insert in $SPLUNK_HOME/etc/apps.&lt;/P&gt;

&lt;P&gt;To set data retention you have to insert in indexes.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[index_name]
frozenTimePeriodInSecs = integer
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Remember that if you add or modify a conbf file you have to restart Splunk.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;frozenTimePeriodInSecs = &amp;lt;nonnegative_integer&amp;gt;
* The number of seconds after which indexed data rolls to frozen.
* If you do not specify a 'coldToFrozenScript', data is deleted when rolled to   frozen.
* NOTE: Every event in a bucket must be older than 'frozenTimePeriodInSecs' seconds before the bucket rolls to frozen.
* The highest legal value is 4294967295.
* Default: 188697600 (6 years)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;for more info see at:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.0/Admin/Indexesconf" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.0/Admin/Indexesconf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.0/Indexer/Setaretirementandarchivingpolicy" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.0/Indexer/Setaretirementandarchivingpolicy&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:59:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Data-retention/m-p/485195#M193541</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-30T02:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Data retention</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Data-retention/m-p/485196#M193542</link>
      <description>&lt;P&gt;How often maxtotaldatasize is set? &lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 14:59:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Data-retention/m-p/485196#M193542</guid>
      <dc:creator>dani9</dc:creator>
      <dc:date>2019-11-14T14:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Data retention</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Data-retention/m-p/485197#M193543</link>
      <description>&lt;P&gt;NOTE: Every event in a bucket must be older than 'frozenTimePeriodInSecs' seconds before the bucket rolls to frozen&lt;/P&gt;

&lt;P&gt;This means that i have to set each bucket like telemetry, main, summary etc.. Older that frozen field? &lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 15:04:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Data-retention/m-p/485197#M193543</guid>
      <dc:creator>dani9</dc:creator>
      <dc:date>2019-11-14T15:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Data retention</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Data-retention/m-p/485198#M193544</link>
      <description>&lt;P&gt;Hi @dani9,&lt;BR /&gt;
I don't like to use the dimension of the index because I usually have compliance need and I prefer to use frozenTimePeriodInSecs.&lt;/P&gt;

&lt;P&gt;Anyway, if you prefer to use maxtotaldatasize, you can use it as I described in my answer.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 15:15:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Data-retention/m-p/485198#M193544</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-11-14T15:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Data retention</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Data-retention/m-p/485199#M193545</link>
      <description>&lt;P&gt;The fact is just insert the field frozen the retention works? Because in the guides advices to set also maxtotalsize and coldfrozentodir, without these it works the same?&lt;BR /&gt;
How can I see if data retention is effectively working? &lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 15:18:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Data-retention/m-p/485199#M193545</guid>
      <dc:creator>dani9</dc:creator>
      <dc:date>2019-11-14T15:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Data retention</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Data-retention/m-p/485200#M193546</link>
      <description>&lt;P&gt;Hi @dani9,&lt;BR /&gt;
a bucket is rolled to frozen (in other words deleted if you haven't any script) when the latest event exceed the retention period.&lt;BR /&gt;
You have to set the retention period for each index or you can set a default value, I don't like this because I like to have a full control on data retention!&lt;BR /&gt;
Anyway, it's important to intervene on the largest indexes: e.g. _internal is a large index and it's udeful to set retention, _audit it isn't.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 16:17:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Data-retention/m-p/485200#M193546</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-11-14T16:17:52Z</dc:date>
    </item>
  </channel>
</rss>

