<?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 Change log storage time in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Change-log-storage-time/m-p/535567#M89821</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the indexes were created, they were created by default.&lt;/P&gt;&lt;P&gt;Now that I needed to know how long a log went from hot to warm bucket and finally to frozen, I have the following question.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1.&lt;/STRONG&gt; Is this query correct to know how long it is configured to go to frozen?&lt;BR /&gt;&lt;U&gt;| rest / services / data / indexes | fields title froz * | rename title as index&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2.&lt;/STRONG&gt; If I need it not to store the logs for 6 years, which is the value that I see by default, and I need it to store the logs for 6 months, understanding that when the log reaches 6 months it would go to a frozen state and splunk would begin to eliminate the older data.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3.&lt;/STRONG&gt; I should create a file called indexes.conf in the "local" folder and set the value frozenTimePeriodInSecs = 15778800&lt;/P&gt;&lt;P&gt;b Should I go to the bin and restart the splunk service for it to take the changes?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4.&lt;/STRONG&gt; Would this change immediately erase logs that are already 6 months old in seconds? or does it start from this moment?&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jan 2021 21:52:53 GMT</pubDate>
    <dc:creator>splunkcol</dc:creator>
    <dc:date>2021-01-12T21:52:53Z</dc:date>
    <item>
      <title>Change log storage time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-log-storage-time/m-p/535567#M89821</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the indexes were created, they were created by default.&lt;/P&gt;&lt;P&gt;Now that I needed to know how long a log went from hot to warm bucket and finally to frozen, I have the following question.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1.&lt;/STRONG&gt; Is this query correct to know how long it is configured to go to frozen?&lt;BR /&gt;&lt;U&gt;| rest / services / data / indexes | fields title froz * | rename title as index&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2.&lt;/STRONG&gt; If I need it not to store the logs for 6 years, which is the value that I see by default, and I need it to store the logs for 6 months, understanding that when the log reaches 6 months it would go to a frozen state and splunk would begin to eliminate the older data.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3.&lt;/STRONG&gt; I should create a file called indexes.conf in the "local" folder and set the value frozenTimePeriodInSecs = 15778800&lt;/P&gt;&lt;P&gt;b Should I go to the bin and restart the splunk service for it to take the changes?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4.&lt;/STRONG&gt; Would this change immediately erase logs that are already 6 months old in seconds? or does it start from this moment?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2021 21:52:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-log-storage-time/m-p/535567#M89821</guid>
      <dc:creator>splunkcol</dc:creator>
      <dc:date>2021-01-12T21:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Change log storage time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-log-storage-time/m-p/535613#M89824</link>
      <description>&lt;P&gt;&lt;STRONG&gt;1.&lt;/STRONG&gt; Is this query correct to know how long it is configured to go to frozen?&lt;BR /&gt;&lt;U&gt;| rest / services / data / indexes | fields title froz * | rename title as index&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;-- Yes SPL is correct&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2.&lt;/STRONG&gt; If I need it not to store the logs for 6 years, which is the value that I see by default, and I need it to store the logs for 6 months, understanding that when the log reaches 6 months it would go to a frozen state and splunk would begin to eliminate the older data.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;-- &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.1/Indexer/Setaretirementandarchivingpolicy" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/8.1.1/Indexer/Setaretirementandarchivingpolicy&lt;/A&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;The maxTotalDataSizeMB and frozenTimePeriodInSecs attributes in indexes.conf help determine when buckets roll from cold to frozen.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3.&lt;/STRONG&gt; I should create a file called indexes.conf in the "local" folder and set the value frozenTimePeriodInSecs = 15778800&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;--&lt;/STRONG&gt; &lt;STRONG&gt;Yes , 15778800 (seconds) means something near to 6 months (60*60*24*180) and for exact value is 15552000 (considering 30 days in each month).&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;b Should I go to the bin and restart the splunk service for it to take the changes?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-- &lt;EM&gt;Yes, if you are on "standalone infra" Splunk restart required and if you are on a "indexer cluster" a configuration push with rolling restart of all the peer nodes required.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4.&lt;/STRONG&gt; Would this change immediately erase logs that are already 6 months old in seconds? or does it start from this moment?&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;-- Its not very immediate, based on your infra may take 2-10 min (again its based on your Splunk infra).&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 07:58:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-log-storage-time/m-p/535613#M89824</guid>
      <dc:creator>General_Talos</dc:creator>
      <dc:date>2021-01-13T07:58:21Z</dc:date>
    </item>
  </channel>
</rss>

