<?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: Logs in an index getting rolled cold to frozen before size or time limits are reached in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Logs-in-an-index-getting-rolled-cold-to-frozen-before-size-or/m-p/411848#M72907</link>
    <description>&lt;P&gt;In regard to your settings:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; homePath = volume:home/indexname/db
 coldPath = volume:SAN/indexname/colddb
 thawedPath = $SPLUNK_THAW_VOL/indexname/thaweddb
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;From the &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/admin/Indexesconf" target="_blank"&gt;indexes.conf documentation&lt;/A&gt;:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;thawedPath must be specified, and cannot use volume: syntax&lt;BR /&gt;
choose a location convenient for reconstitition from archive goals&lt;BR /&gt;
For many sites, this may never be used.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;From your settings:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; # the max settings are copied from main's default max settings
 maxMemMB = 20
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;From the &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/admin/Indexesconf" target="_blank"&gt;indexes.conf documentation&lt;/A&gt; this defaults to 5 in the newest version:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;IMPORTANT:  Calculate this number&lt;BR /&gt;
carefully. splunkd will crash if you&lt;BR /&gt;
set   this number higher than the&lt;BR /&gt;
amount of memory available. The&lt;BR /&gt;
default is recommended for all&lt;BR /&gt;
environments.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Finally:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; homePath.maxDataSizeMB = 409600
 coldPath.maxDataSizeMB = 1536000
 maxTotalDataSizeMB = 1945600
 frozenTimePeriodInSecs = 7776000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;All of these can effect the cold to frozen decision, the once either the homePath size limit is reached &lt;EM&gt;or&lt;/EM&gt; maxWarmDBCount is reached &lt;EM&gt;or&lt;/EM&gt; you reach the hot volume limit (in your example volume:home) you will roll to cold.&lt;BR /&gt;
From there either 1536000MB can be reached &lt;EM&gt;or&lt;/EM&gt; frozen time period in seconds &lt;EM&gt;or&lt;/EM&gt; cold volume (volume:SAN) in your example, can result buckets rolling to frozen.&lt;BR /&gt;
Note this all applies &lt;EM&gt;per&lt;/EM&gt; indexer.&lt;/P&gt;

&lt;P&gt;solarboyz1 provided some example searches for this. Also personally I wouldn't use maxHotIdleSecs  or tweak your maxHotBuckets settings unless you know what you are doing.&lt;BR /&gt;
Finally, auto_high_volume is designed for higher volume indexes FYI&lt;/P&gt;

&lt;P&gt;FYI within the &lt;A href="https://splunkbase.splunk.com/app/3796/" target="_blank"&gt;Alerts for Splunk Admins&lt;/A&gt; app I have two alerts that relate to this scenario:&lt;BR /&gt;
IndexerLevel - Buckets are been frozen due to index sizing, effectively:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal `indexerhosts` sourcetype=splunkd "BucketMover - will attempt to freeze" NOT "because frozenTimePeriodInSecs=" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And IndexerLevel - Cold data location approaching size limits which I will not paste here.&lt;BR /&gt;
Application &lt;A href="https://splunkbase.splunk.com/app/3796/" target="_blank"&gt;here&lt;/A&gt; or &lt;A href="https://github.com/gjanders/SplunkAdmins/blob/master/default/savedsearches.conf" target="_blank"&gt;github&lt;/A&gt; if you just want the searches&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 19:35:10 GMT</pubDate>
    <dc:creator>gjanders</dc:creator>
    <dc:date>2020-09-29T19:35:10Z</dc:date>
    <item>
      <title>Logs in an index getting rolled cold to frozen before size or time limits are reached</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Logs-in-an-index-getting-rolled-cold-to-frozen-before-size-or/m-p/411843#M72902</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;repFactor = auto
homePath = volume:home/indexname/db
coldPath = volume:SAN/indexname/colddb
thawedPath = $SPLUNK_THAW_VOL/indexname/thaweddb
# the max settings are copied from main's default max settings
maxMemMB = 20
maxConcurrentOptimizes = 6
maxHotIdleSecs = 86400
maxHotBuckets = 10
maxDataSize = auto_high_volume
homePath.maxDataSizeMB = 409600
coldPath.maxDataSizeMB = 1536000
maxTotalDataSizeMB = 1945600
# maxTotalDataSizeMB = ?
# keep logs for 90 days
frozenTimePeriodInSecs = 7776000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The logs seem to be rolling from cold to frozen at around 60 days, all but one or two source types (so when I search back to between 60 and 90 days I only see one or two sourcetypes when there should exist over 20).&lt;/P&gt;

&lt;P&gt;The coldpath limit isn't even close to being hit on this index.  I implemented this index configuration at the beginning of the year so it should be keeping the data for 90 day periods, yet it's throwing them out before.  Are there other areas that can trigger a rolling from cold to frozen?  We have plenty of space on the drives as well.&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 20:35:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Logs-in-an-index-getting-rolled-cold-to-frozen-before-size-or/m-p/411843#M72902</guid>
      <dc:creator>briancronrath</dc:creator>
      <dc:date>2018-05-17T20:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Logs in an index getting rolled cold to frozen before size or time limits are reached</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Logs-in-an-index-getting-rolled-cold-to-frozen-before-size-or/m-p/411844#M72903</link>
      <description>&lt;P&gt;There are multiple factors to why a bucket rolls.&lt;BR /&gt;
Run the following search:  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_*  component=BucketMover "will attempt to freeze"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You should see event similar to:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;07-24-2014 01:30:51.609 +0200 INFO BucketMover - will attempt to freeze: candidate='/opt/SP/apps/splunk/splunk-6.0.1/var/lib/splunk/rest/db/db_1392823223_1392819715_1' **because frozenTimePeriodInSecs=2419200 exceeds difference between now=1406158251 and latest=1392823223**
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;These events show the reason the bucket were rolled.  That would help pinpoint the root cause. &lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 21:16:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Logs-in-an-index-getting-rolled-cold-to-frozen-before-size-or/m-p/411844#M72903</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2018-05-17T21:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Logs in an index getting rolled cold to frozen before size or time limits are reached</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Logs-in-an-index-getting-rolled-cold-to-frozen-before-size-or/m-p/411845#M72904</link>
      <description>&lt;P&gt;Thank you, this is definitely helpful!  Although, one thing that still isn't adding up, is that if I search just for the index in question, the only reason it ever gives is that the frozenTimePeriodInSecs=7776000 is exceeded by the difference between now=number and latest=number&lt;/P&gt;

&lt;P&gt;I don't suppose there is any other reason it might be getting evicted?&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 16:07:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Logs-in-an-index-getting-rolled-cold-to-frozen-before-size-or/m-p/411845#M72904</guid>
      <dc:creator>briancronrath</dc:creator>
      <dc:date>2018-05-18T16:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Logs in an index getting rolled cold to frozen before size or time limits are reached</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Logs-in-an-index-getting-rolled-cold-to-frozen-before-size-or/m-p/411846#M72905</link>
      <description>&lt;P&gt;The other common reasons I am aware of are when the max index size is hit or max volume size. &lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 17:48:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Logs-in-an-index-getting-rolled-cold-to-frozen-before-size-or/m-p/411846#M72905</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2018-05-18T17:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Logs in an index getting rolled cold to frozen before size or time limits are reached</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Logs-in-an-index-getting-rolled-cold-to-frozen-before-size-or/m-p/411847#M72906</link>
      <description>&lt;P&gt;maxTotalDataSizeMB = 1945600&lt;/P&gt;

&lt;P&gt;This indicates the total size of the index.  If you are only seeing the issue on a few indexes, I would verify these settings. &lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 18:34:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Logs-in-an-index-getting-rolled-cold-to-frozen-before-size-or/m-p/411847#M72906</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2018-05-18T18:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Logs in an index getting rolled cold to frozen before size or time limits are reached</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Logs-in-an-index-getting-rolled-cold-to-frozen-before-size-or/m-p/411848#M72907</link>
      <description>&lt;P&gt;In regard to your settings:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; homePath = volume:home/indexname/db
 coldPath = volume:SAN/indexname/colddb
 thawedPath = $SPLUNK_THAW_VOL/indexname/thaweddb
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;From the &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/admin/Indexesconf" target="_blank"&gt;indexes.conf documentation&lt;/A&gt;:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;thawedPath must be specified, and cannot use volume: syntax&lt;BR /&gt;
choose a location convenient for reconstitition from archive goals&lt;BR /&gt;
For many sites, this may never be used.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;From your settings:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; # the max settings are copied from main's default max settings
 maxMemMB = 20
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;From the &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/admin/Indexesconf" target="_blank"&gt;indexes.conf documentation&lt;/A&gt; this defaults to 5 in the newest version:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;IMPORTANT:  Calculate this number&lt;BR /&gt;
carefully. splunkd will crash if you&lt;BR /&gt;
set   this number higher than the&lt;BR /&gt;
amount of memory available. The&lt;BR /&gt;
default is recommended for all&lt;BR /&gt;
environments.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Finally:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; homePath.maxDataSizeMB = 409600
 coldPath.maxDataSizeMB = 1536000
 maxTotalDataSizeMB = 1945600
 frozenTimePeriodInSecs = 7776000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;All of these can effect the cold to frozen decision, the once either the homePath size limit is reached &lt;EM&gt;or&lt;/EM&gt; maxWarmDBCount is reached &lt;EM&gt;or&lt;/EM&gt; you reach the hot volume limit (in your example volume:home) you will roll to cold.&lt;BR /&gt;
From there either 1536000MB can be reached &lt;EM&gt;or&lt;/EM&gt; frozen time period in seconds &lt;EM&gt;or&lt;/EM&gt; cold volume (volume:SAN) in your example, can result buckets rolling to frozen.&lt;BR /&gt;
Note this all applies &lt;EM&gt;per&lt;/EM&gt; indexer.&lt;/P&gt;

&lt;P&gt;solarboyz1 provided some example searches for this. Also personally I wouldn't use maxHotIdleSecs  or tweak your maxHotBuckets settings unless you know what you are doing.&lt;BR /&gt;
Finally, auto_high_volume is designed for higher volume indexes FYI&lt;/P&gt;

&lt;P&gt;FYI within the &lt;A href="https://splunkbase.splunk.com/app/3796/" target="_blank"&gt;Alerts for Splunk Admins&lt;/A&gt; app I have two alerts that relate to this scenario:&lt;BR /&gt;
IndexerLevel - Buckets are been frozen due to index sizing, effectively:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal `indexerhosts` sourcetype=splunkd "BucketMover - will attempt to freeze" NOT "because frozenTimePeriodInSecs=" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And IndexerLevel - Cold data location approaching size limits which I will not paste here.&lt;BR /&gt;
Application &lt;A href="https://splunkbase.splunk.com/app/3796/" target="_blank"&gt;here&lt;/A&gt; or &lt;A href="https://github.com/gjanders/SplunkAdmins/blob/master/default/savedsearches.conf" target="_blank"&gt;github&lt;/A&gt; if you just want the searches&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:35:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Logs-in-an-index-getting-rolled-cold-to-frozen-before-size-or/m-p/411848#M72907</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2020-09-29T19:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Logs in an index getting rolled cold to frozen before size or time limits are reached</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Logs-in-an-index-getting-rolled-cold-to-frozen-before-size-or/m-p/411849#M72908</link>
      <description>&lt;P&gt;so here is something I just thought about, it seems to be constantly saying it is evicting due to the frozenTimePeriod, yet none of the data seems to ever come close to that period, but I did find a sourcetype every now and then throws in super old data.  Could it be that just the one bit of old data causes the entire bucket to get evicted even if the majority of the data in it is not past the frozen time period?&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 16:34:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Logs-in-an-index-getting-rolled-cold-to-frozen-before-size-or/m-p/411849#M72908</guid>
      <dc:creator>briancronrath</dc:creator>
      <dc:date>2018-05-23T16:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Logs in an index getting rolled cold to frozen before size or time limits are reached</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Logs-in-an-index-getting-rolled-cold-to-frozen-before-size-or/m-p/411850#M72909</link>
      <description>&lt;P&gt;So, in the frozen bucket events:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; 07-24-2014 01:30:51.609 +0200 INFO BucketMover - will attempt to freeze: candidate='/opt/SP/apps/splunk/splunk-6.0.1/var/lib/splunk/rest/db/db_1392823223_1392819715_1'because frozenTimePeriodInSecs=2419200 exceeds difference between now=1406158251 and latest=1392823223'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The latest time should be the timestamp of the earliest event in the bucket. Are you receiving freeze events where now - latest &amp;lt; 7776000 ?&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 17:45:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Logs-in-an-index-getting-rolled-cold-to-frozen-before-size-or/m-p/411850#M72909</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2018-05-23T17:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Logs in an index getting rolled cold to frozen before size or time limits are reached</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Logs-in-an-index-getting-rolled-cold-to-frozen-before-size-or/m-p/411851#M72910</link>
      <description>&lt;P&gt;@briancronrath yes, but only if you rolling based on an index / volume size limit rather than the time based limit (frozenTimePeriodInSecs)&lt;/P&gt;

&lt;P&gt;Size-based rolling is oldest bucket first which means the &lt;EM&gt;oldest&lt;/EM&gt; piece of data within a bucket determines when to roll.&lt;/P&gt;

&lt;P&gt;frozenTimePeriodInSecs would ensure &lt;EM&gt;all&lt;/EM&gt; data was past the required date (even the newest data in the bucket) before rolling the entire bucket.&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 21:39:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Logs-in-an-index-getting-rolled-cold-to-frozen-before-size-or/m-p/411851#M72910</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2018-05-23T21:39:06Z</dc:date>
    </item>
  </channel>
</rss>

