<?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 indexes.conf: &amp;quot;default&amp;quot; vs &amp;quot;main&amp;quot; settings: which go into effect? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/indexes-conf-quot-default-quot-vs-quot-main-quot-settings-which/m-p/104709#M22043</link>
    <description>&lt;P&gt;I'm working to put in place a 400 day (34560000 second) data retention policy on the main (default) index.&lt;/P&gt;

&lt;P&gt;At the indexer, when I run /splunk cmd btool --debug indexes list, I see:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
system frozenTimePeriodInSecs = 188697600
...
[main]
xxxxxxx frozenTimePeriodInSecs = 34560000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Which of these two settings will go into effect?
How can I get positive confirmation of the settings that are in effect?&lt;/P&gt;</description>
    <pubDate>Wed, 15 Dec 2010 03:34:14 GMT</pubDate>
    <dc:creator>jbsplunk</dc:creator>
    <dc:date>2010-12-15T03:34:14Z</dc:date>
    <item>
      <title>indexes.conf: "default" vs "main" settings: which go into effect?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/indexes-conf-quot-default-quot-vs-quot-main-quot-settings-which/m-p/104709#M22043</link>
      <description>&lt;P&gt;I'm working to put in place a 400 day (34560000 second) data retention policy on the main (default) index.&lt;/P&gt;

&lt;P&gt;At the indexer, when I run /splunk cmd btool --debug indexes list, I see:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
system frozenTimePeriodInSecs = 188697600
...
[main]
xxxxxxx frozenTimePeriodInSecs = 34560000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Which of these two settings will go into effect?
How can I get positive confirmation of the settings that are in effect?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2010 03:34:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/indexes-conf-quot-default-quot-vs-quot-main-quot-settings-which/m-p/104709#M22043</guid>
      <dc:creator>jbsplunk</dc:creator>
      <dc:date>2010-12-15T03:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: indexes.conf: "default" vs "main" settings: which go into effect?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/indexes-conf-quot-default-quot-vs-quot-main-quot-settings-which/m-p/104710#M22044</link>
      <description>&lt;P&gt;The information you see under [default] is a global setting that take precedence if you haven't defined a setting for a specific index. These settings come from /etc/system/default/indexes.conf. This can be a bit confusing as if you look into indexes.conf, global settings do not exist within a [default] stanza. Additionally, there is no need to create a [default] stanza.&lt;/P&gt;

&lt;P&gt;If you take a look at the settings in $SPLUNK_HOME/etc/system/default/indexes.conf, you'll notice the settings for frozenTimePeriodInSecs matches the setting under this section:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# index specific defaults
frozenTimePeriodInSecs = 188697600
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Since this setting also exists for [main], per the btool ouput, the setting for main takes precedence. This is part of the reason that btool is a technical support utility. The output can be confusing if you aren't sure what to expect. In this instance, since btool does show main as having the value defined, you can be sure that this is what will take effect. If you wanted to ensure all indexes had this behavior by default, you could copy the global settings from $SPLUNK_HOME/etc/system/default/indexes.conf into $SPLUNK_HOME/etc/system/local/indexes.conf. &lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2010 03:35:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/indexes-conf-quot-default-quot-vs-quot-main-quot-settings-which/m-p/104710#M22044</guid>
      <dc:creator>jbsplunk</dc:creator>
      <dc:date>2010-12-15T03:35:52Z</dc:date>
    </item>
  </channel>
</rss>

