<?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: Why is the frozenTimePeriodInSecs setting only executed once after restart? in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/Why-is-the-frozenTimePeriodInSecs-setting-only-executed-once/m-p/139338#M7722</link>
    <description>&lt;P&gt;To enable data retention with such low retention period,  you would need to configure more properties as well. Following are those&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    frozenTimePeriodInSecs - Use your setting, only cold buckets older than this period will be rolled to frozen
    maxHotIdleSecs  - defaults to 0 (infinite), set it same or lower than frozenTimePeriodInSecs 
    maxHotBuckets - default to 3, set it to 1 to enable faster bucket rollover to warm bucket
    maxWarmDBCount - defaults to 300, set it to smaller number, e.g. 1
    rotatePeriodInSecs - defaults to 60, should be enough for your retention period but best to reduce it to 30 sec
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 27 Jul 2015 22:36:05 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2015-07-27T22:36:05Z</dc:date>
    <item>
      <title>Why is the frozenTimePeriodInSecs setting only executed once after restart?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Why-is-the-frozenTimePeriodInSecs-setting-only-executed-once/m-p/139336#M7720</link>
      <description>&lt;P&gt;I am testing the frozenTimePeriodInSecs setting, so I have edited my &lt;CODE&gt;/opt/splunk/etc/system/local/indexes.conf&lt;/CODE&gt; and added the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
frozenTimePeriodInSecs= 180
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and restarted the app. Immediately afterwards, I searched for &lt;CODE&gt;index=_internal source=*splunkd.log BucketMover&lt;/CODE&gt; and verified that the message &lt;EM&gt;AsyncFreezer freeze succeeded&lt;/EM&gt; appears.&lt;/P&gt;

&lt;P&gt;Then, I uploaded some logs in the main index and waited some time, but no new AsyncFreezer event has been executed again and the log information I loaded is still there. Even after the 180 seconds have elapsed.&lt;/P&gt;

&lt;P&gt;My expectation is that the AsyncFreeze event is executed on a regular basis and the data recently uploaded is no longer available in the Search. &lt;/P&gt;

&lt;P&gt;What am I missing?&lt;/P&gt;

&lt;P&gt;TIA&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2015 21:38:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Why-is-the-frozenTimePeriodInSecs-setting-only-executed-once/m-p/139336#M7720</guid>
      <dc:creator>marplatense</dc:creator>
      <dc:date>2015-07-27T21:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the frozenTimePeriodInSecs setting only executed once after restart?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Why-is-the-frozenTimePeriodInSecs-setting-only-executed-once/m-p/139337#M7721</link>
      <description>&lt;P&gt;You also need to set &lt;STRONG&gt;rotatePeriodInSecs&lt;/STRONG&gt; which defaults to 60 seconds which will check if any events need to rotated to frozen.    Potentially you could see 240 second delay before events are moved.  Think of frozenTimePeriodInSecs as the a threshold and rotatePeriodInSecs as the frequency Splunk checks data for the threshold. &lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2015 22:19:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Why-is-the-frozenTimePeriodInSecs-setting-only-executed-once/m-p/139337#M7721</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2015-07-27T22:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the frozenTimePeriodInSecs setting only executed once after restart?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Why-is-the-frozenTimePeriodInSecs-setting-only-executed-once/m-p/139338#M7722</link>
      <description>&lt;P&gt;To enable data retention with such low retention period,  you would need to configure more properties as well. Following are those&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    frozenTimePeriodInSecs - Use your setting, only cold buckets older than this period will be rolled to frozen
    maxHotIdleSecs  - defaults to 0 (infinite), set it same or lower than frozenTimePeriodInSecs 
    maxHotBuckets - default to 3, set it to 1 to enable faster bucket rollover to warm bucket
    maxWarmDBCount - defaults to 300, set it to smaller number, e.g. 1
    rotatePeriodInSecs - defaults to 60, should be enough for your retention period but best to reduce it to 30 sec
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Jul 2015 22:36:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Why-is-the-frozenTimePeriodInSecs-setting-only-executed-once/m-p/139338#M7722</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-07-27T22:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the frozenTimePeriodInSecs setting only executed once after restart?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Why-is-the-frozenTimePeriodInSecs-setting-only-executed-once/m-p/139339#M7723</link>
      <description>&lt;P&gt;Thanks in advance, I will test these values a.s.a.p. One question though: I am using the low value just for testing, in real application I will use a bigger value. My doubt is if these new settings you are recommending apply for all scenarios or just this one I am proposing?&lt;/P&gt;

&lt;P&gt;TIA&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2015 22:46:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Why-is-the-frozenTimePeriodInSecs-setting-only-executed-once/m-p/139339#M7723</guid>
      <dc:creator>marplatense</dc:creator>
      <dc:date>2015-07-27T22:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the frozenTimePeriodInSecs setting only executed once after restart?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Why-is-the-frozenTimePeriodInSecs-setting-only-executed-once/m-p/139340#M7724</link>
      <description>&lt;P&gt;As others have pointed out there are many tuneable parameters that you may consider setting in indexes.conf but I want to help you understand why you're seeing this behavior. The key quote from the &lt;CODE&gt;frozenTimePeriodInSecs&lt;/CODE&gt; parameter in the docs is: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;IMPORTANT: Every event in the DB must be older than frozenTimePeriodInSecs before it will roll. Then, the DB 
  will be frozen the next time splunkd checks (based on rotatePeriodInSecs attribute).
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So this means that the newest event in a particular bucket, must be more than 2 minutes old before the bucket (which could have plenty of older events as well... considering the default settings of &lt;CODE&gt;maxHotSpanSecs&lt;/CODE&gt; that could be 90 days worth of data) is frozen. Well... as data is being sent into Splunk, you have (one or more) hot buckets which are actively being written with data and the newest event is in that bucket could always be right now, as data can be added to that bucket as long as the hot bucket is open. The bucket could theoretically remain open infinitely with no new events coming in due to the default of &lt;CODE&gt;maxHotIdleSecs&lt;/CODE&gt;, but other constraints on hot buckets will close it sooner. When the hot bucket is closed and it "rolls to warm," the bucket can no longer have any new events added to it, and then Splunk would be able to determine if the time of the newest event is greater than &lt;CODE&gt;frozenTimePeriodInSecs&lt;/CODE&gt; and subsequently if the bucket with all of its events qualifies for deletion or not.&lt;/P&gt;

&lt;P&gt;The reason you're seeing the freeze after restart, is that when Splunk restarts, all hot buckets automatically become warm buckets on restart (and thus could be frozen), but likely with such a small frozenTimePeriodInSecs, you're seeing data older than this timeframe because your hot buckets are still open, and could potentially have new events written into them.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2015 23:22:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Why-is-the-frozenTimePeriodInSecs-setting-only-executed-once/m-p/139340#M7724</guid>
      <dc:creator>acharlieh</dc:creator>
      <dc:date>2015-07-27T23:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the frozenTimePeriodInSecs setting only executed once after restart?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Why-is-the-frozenTimePeriodInSecs-setting-only-executed-once/m-p/139341#M7725</link>
      <description>&lt;P&gt;Thanks for your kind answer. I hope you don't mind a quick follow up.&lt;/P&gt;

&lt;P&gt;I added the following parameters to indexes.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
frozenTimePeriodInSecs = 180
maxHotIdleSecs =  150
maxHotBuckets = 1
maxWarmDBCount = 1
rotatePeriodInSecs = 30
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and restarted. Just as before, the data I had disappeared but the system didn't repeat the AsyncFreezer event after the first time. Following your comment I finally added one more parameter &lt;CODE&gt;maxHotSpanSecs = 3600&lt;/CODE&gt; and restarted once again. Finally I see that every our the AsyncFreezer event is triggered. However after I submitted new data and I could verify that the AsyncFreezer process has been executed several times in the upcoming hours, these events (located in the index main) are still visible via search and they have not been deleted. &lt;BR /&gt;
If I restart splunk they will be gone but -as you can imagine- that's not what I am after.&lt;BR /&gt;
Any ideas on what I am missing?&lt;/P&gt;

&lt;P&gt;TIA,&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2015 02:04:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Why-is-the-frozenTimePeriodInSecs-setting-only-executed-once/m-p/139341#M7725</guid>
      <dc:creator>marplatense</dc:creator>
      <dc:date>2015-07-29T02:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the frozenTimePeriodInSecs setting only executed once after restart?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Why-is-the-frozenTimePeriodInSecs-setting-only-executed-once/m-p/139342#M7726</link>
      <description>&lt;P&gt;I'll admit I haven't restricted indexes to such a level myself, however a start of what's happening here: As you know with Splunk are a &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.4/Admin/Wheretofindtheconfigurationfiles"&gt;bunch of folders where you could be creating an indexes.conf file with those contents&lt;/A&gt;. So I'm guessing that you're setting exactly that into &lt;CODE&gt;$SPLUNK_HOME/etc/system/local/indexes.conf&lt;/CODE&gt;. But how is that configuration being applied? This is where &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.4/Troubleshooting/Usebtooltotroubleshootconfigurations"&gt;btool&lt;/A&gt; comes in handy.&lt;/P&gt;

&lt;P&gt;Assuming a fresh install of 6.2.4, and your indexes.conf set where I described, when you run &lt;CODE&gt;$SPLUNK_HOME/bin/splunk cmd btool indexes list main --debug&lt;/CODE&gt;  you'd see that only 4 of the 6 settings that you set are actually being applied to main, &lt;CODE&gt;maxHotBuckets&lt;/CODE&gt; and &lt;CODE&gt;maxHotIdleSecs&lt;/CODE&gt; are still coming from the default indexes.conf file. That's because if you peek into the default file, you'd see these settings are set specifically on the main index (as opposed to being set as defaults). The more specific resolved settings in the &lt;CODE&gt;[main]&lt;/CODE&gt; stanza override resolved settings in the general &lt;CODE&gt;[default]&lt;/CODE&gt; stanza. You can add another stanza with these specific settings for main in your local indexes.conf file, or change your default stanza to a main stanza and your settings will then all apply. (Don't change the indexes.conf in the default folder, that will get overwritten with every upgrade!)&lt;/P&gt;

&lt;P&gt;Out of curiosity though... why are you trying to set such a tight retention policy anyways?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2015 04:22:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Why-is-the-frozenTimePeriodInSecs-setting-only-executed-once/m-p/139342#M7726</guid>
      <dc:creator>acharlieh</dc:creator>
      <dc:date>2015-07-29T04:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the frozenTimePeriodInSecs setting only executed once after restart?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Why-is-the-frozenTimePeriodInSecs-setting-only-executed-once/m-p/139343#M7727</link>
      <description>&lt;P&gt;Once again, thanks for your answer. Your comment was right on the spot (but of course you knew this from the start) and the [main] stanza was taking precedence over the [default] values for those two parameters. I added [main] to my local indexes.conf and I am waiting for these events to be deleted when the hour elapsed. Let's see how it goes. &lt;BR /&gt;
Regarding your question about this low threshold: it is just for testing purposes (the actual value will be in the order of weeks): the thing is that I have to dispatch the whole splunk already configured and I will not be able to fine tune the parameters once it is installed so I need to be 100% sure it will work. So far, for a expected retention value of two weeks I believe that the three parameters I really need to set are &lt;EM&gt;frozenTimePeriodInSecs&lt;/EM&gt;, &lt;EM&gt;rotatePeriodInSecs&lt;/EM&gt; and &lt;EM&gt;maxHotIdleSecs&lt;/EM&gt;. Do you consider this to be a safe bet? (the other parameters I am touching are due to the low threshold).&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2015 14:54:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Why-is-the-frozenTimePeriodInSecs-setting-only-executed-once/m-p/139343#M7727</guid>
      <dc:creator>marplatense</dc:creator>
      <dc:date>2015-07-29T14:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the frozenTimePeriodInSecs setting only executed once after restart?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Why-is-the-frozenTimePeriodInSecs-setting-only-executed-once/m-p/139344#M7728</link>
      <description>&lt;P&gt;Good news: it is working as intended. New data is gone away when the whole AsyncFreeze process is executed (once per hour, due to my &lt;CODE&gt;maxHotSpanSecs = 3600&lt;/CODE&gt;). Thanks again to all who answered.&lt;BR /&gt;
Regarding my last comment in the previous answer: I have verified that &lt;EM&gt;maxHotIdleSecs&lt;/EM&gt; is already present in the default indexes.conf for the main stanza with a value of 86400 so I will leave it that way. The one I believe I have to modify is maxHotSpanSecs since its default value of 90 is bigger than my expected window of two weeks. I have to be certain that the bucket is closed before the frozenTimePeriodInSecs has been reached in order the due archiving process can be processed. &lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2015 17:30:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Why-is-the-frozenTimePeriodInSecs-setting-only-executed-once/m-p/139344#M7728</guid>
      <dc:creator>marplatense</dc:creator>
      <dc:date>2015-07-29T17:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the frozenTimePeriodInSecs setting only executed once after restart?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Why-is-the-frozenTimePeriodInSecs-setting-only-executed-once/m-p/139345#M7729</link>
      <description>&lt;P&gt;Glad I could help @marplatense! I'm not sure if you're aware of this, but instead of using the "award points" link (which deducts from your answers karma) if you feel an answer, question, or comment is particularly good, you can use the upvote button (^) instead. Doing so awards karma to whomever helped you out, while keeping your karma intact, and helps with rankings of content too. I've awarded you the karma that you gave away in this manner.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2015 21:52:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Why-is-the-frozenTimePeriodInSecs-setting-only-executed-once/m-p/139345#M7729</guid>
      <dc:creator>acharlieh</dc:creator>
      <dc:date>2015-07-29T21:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the frozenTimePeriodInSecs setting only executed once after restart?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Why-is-the-frozenTimePeriodInSecs-setting-only-executed-once/m-p/139346#M7730</link>
      <description>&lt;P&gt;Hi marplatense,&lt;/P&gt;

&lt;P&gt;I was facing the same issue here .. Can you please share the indexes.conf you used. i am using the following . but no luck !!!&lt;/P&gt;

&lt;P&gt;[my_index]&lt;BR /&gt;
coldPath = $SPLUNK_DB/my_index/colddb&lt;BR /&gt;
homePath = $SPLUNK_DB/my_index/db&lt;BR /&gt;
thawedPath = $SPLUNK_DB/cold/my_index/thaweddb&lt;BR /&gt;
maxHotSpanSecs = 300&lt;BR /&gt;
frozenTimePeriodInSecs = 300&lt;BR /&gt;
rotatePeriodInSecs = 30&lt;BR /&gt;
repFactor = auto&lt;/P&gt;

&lt;P&gt;Here i am jus testing with 5 min rolling window , but this doesnt work as expected until i restart.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:19:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Why-is-the-frozenTimePeriodInSecs-setting-only-executed-once/m-p/139346#M7730</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2020-09-29T08:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the frozenTimePeriodInSecs setting only executed once after restart?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Why-is-the-frozenTimePeriodInSecs-setting-only-executed-once/m-p/139347#M7731</link>
      <description>&lt;P&gt;According to &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Indexesconf"&gt;indexes.conf&lt;/A&gt; you can't set it to lower then 3600 seconds.&lt;BR /&gt;
Well ok you can .. but:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;If you set this parameter to less than&lt;BR /&gt;
3600, it will be automatically   reset&lt;BR /&gt;
to 3600, which will then activate&lt;BR /&gt;
snapping behavior&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 03 Jan 2017 08:37:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Why-is-the-frozenTimePeriodInSecs-setting-only-executed-once/m-p/139347#M7731</guid>
      <dc:creator>securediversity</dc:creator>
      <dc:date>2017-01-03T08:37:42Z</dc:date>
    </item>
  </channel>
</rss>

