<?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: What is the best practice: Implicit or Explicit Index Path Locations? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/What-is-the-best-practice-Implicit-or-Explicit-Index-Path/m-p/370740#M6048</link>
    <description>&lt;P&gt;; - ) you know @SloshBurch, I was about to implement it when I realized that for the out-of-the-box indexes we don't specify &lt;CODE&gt;coldPath&lt;/CODE&gt;, &lt;CODE&gt;homePath&lt;/CODE&gt; etc. Would I break anything, if I add this &lt;CODE&gt;default&lt;/CODE&gt; stanza? &lt;/P&gt;

&lt;P&gt;We have them defined as -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[_internal]
repFactor = auto
frozenTimePeriodInSecs = 34186698
maxTotalDataSizeMB = 4000000
enableTsidxReduction = true
timePeriodInSecBeforeTsidxReduction = 3024000
maxDataSize = auto_high_volume

# 395.679375 Days
# Minify .tsidx files 35 Days
[_audit]
repFactor = auto
frozenTimePeriodInSecs = 34186698
enableTsidxReduction = true
timePeriodInSecBeforeTsidxReduction = 3024000
maxDataSize = auto_high_volume
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 20 Oct 2017 15:40:44 GMT</pubDate>
    <dc:creator>ddrillic</dc:creator>
    <dc:date>2017-10-20T15:40:44Z</dc:date>
    <item>
      <title>What is the best practice: Implicit or Explicit Index Path Locations?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/What-is-the-best-practice-Implicit-or-Explicit-Index-Path/m-p/370732#M6040</link>
      <description>&lt;P&gt;Curious on what is the recommended?  I know the second one makes sense for readability, but the first one i feel would greatly reduce retyping and indexes.conf file size:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Practice 1&lt;/STRONG&gt;&lt;BR /&gt;
[default]&lt;BR /&gt;
coldPath=$SPLUNK_DB/$_index_name/colddb&lt;BR /&gt;
homePath=$SPLUNK_DB/$_index_name/db&lt;BR /&gt;
thawedPath=$SPLUNK_DB/$_index_name/thaweddb&lt;BR /&gt;
frozenTimePeriodInSecs = 200000&lt;/P&gt;

&lt;P&gt;[foo]&lt;BR /&gt;
frozenTimePeriodInSecs = 100000&lt;/P&gt;

&lt;P&gt;[bar]&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Practice 2&lt;/STRONG&gt;&lt;BR /&gt;
[default]&lt;BR /&gt;
frozenTimePeriodInSecs = 200000&lt;/P&gt;

&lt;P&gt;[foo]&lt;BR /&gt;
coldPath=$SPLUNK_DB/foo/colddb&lt;BR /&gt;
homePath=$SPLUNK_DB/foo/db&lt;BR /&gt;
thawedPath=$SPLUNK_DB/foo/thaweddb&lt;BR /&gt;
frozenTimePeriodInSecs = 100000&lt;/P&gt;

&lt;P&gt;[bar]&lt;BR /&gt;
coldPath=$SPLUNK_DB/bar/colddb&lt;BR /&gt;
homePath=$SPLUNK_DB/bar/db&lt;BR /&gt;
thawedPath=$SPLUNK_DB/bar/thaweddb&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:03:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/What-is-the-best-practice-Implicit-or-Explicit-Index-Path/m-p/370732#M6040</guid>
      <dc:creator>paimonsoror</dc:creator>
      <dc:date>2020-09-29T16:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best practice: Implicit or Explicit Index Path Locations?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/What-is-the-best-practice-Implicit-or-Explicit-Index-Path/m-p/370733#M6041</link>
      <description>&lt;P&gt;Practice 1 looks perfect, as you said -  the first one i feel would greatly reduce retyping and indexes.conf file size. &lt;BR /&gt;
easy to manage. &lt;/P&gt;

&lt;P&gt;also (we can assume &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; ) the indexes.conf suggest practice 1&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;homePath = &amp;lt;path on index server&amp;gt;
* An absolute path that contains the hotdb and warmdb for the index.
* It is recommended that you specify the path with the following syntax: 
     homePath = $SPLUNK_DB/$_index_name/db
  At runtime, Splunk expands "$_index_name" to the name of the index. For example, 
  if the index name is "newindex", homePath becomes "$SPLUNK_DB/newindex/db".
* Splunkd keeps a file handle open for warmdbs at all times.
* May contain a volume reference (see volume section below) in place of $SPLUNK_DB.
* CAUTION: The parent path "$SPLUNK_DB/$_index_name/" must be writable.
* Required. Splunk will not start if an index lacks a valid homePath.
* Must restart splunkd after changing this parameter; index reload will not
  suffice.
* We strongly recommend that you avoid the use of other environment variables in
  index paths, aside from the possible exception of SPLUNK_DB.
  * As an exception, SPLUNK_DB is explicitly managed by the provided software,
    so most possible downsides here do not exist.
  * Environment variables could be different from launch to launch of the
    software, causing severe problems with management of indexed data,
    including:
    * Data in the prior location will not be searchable.
    * The indexer may not be able to write to the new location, causing outages
      and/or data loss.
    * Writing to a new, unexpected location could lead to disk exhaustion
      causing additional operational problems.
    * Recovery from such a scenario will require manual intevention and bucket
      renaming, especially difficult in an index clustered environment.
    * In all circumstances, Splunk Diag, the diagnostic tool we use to support
      you, will have no way to determine the correct values for the environment
      variables, so cannot reliably operate.  You may need to manually acquire
      information about your index buckets in troubleshooting scenarios.
  * Generally speaking, volumes provide a more appropriate way to control the
    storage location for indexes in a general way.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 30 Sep 2017 04:14:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/What-is-the-best-practice-Implicit-or-Explicit-Index-Path/m-p/370733#M6041</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2017-09-30T04:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best practice: Implicit or Explicit Index Path Locations?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/What-is-the-best-practice-Implicit-or-Explicit-Index-Path/m-p/370734#M6042</link>
      <description>&lt;P&gt;Thanks for the response.  Good call out on the docs as well &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Should have done more reading.  Anyway, I switched over to the mentioned nomenclature and love it since it reduced my indexes.conf file by nearly half and really made it so much cleaner looking.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 12:42:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/What-is-the-best-practice-Implicit-or-Explicit-Index-Path/m-p/370734#M6042</guid>
      <dc:creator>paimonsoror</dc:creator>
      <dc:date>2017-10-03T12:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best practice: Implicit or Explicit Index Path Locations?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/What-is-the-best-practice-Implicit-or-Explicit-Index-Path/m-p/370735#M6043</link>
      <description>&lt;P&gt;I embraced this approach and have reduced my index stanzas to just the stanza header in some cases. I think it's gonna make this easier for administration too.&lt;/P&gt;

&lt;P&gt;Did you learn about this during a .conf2017 session? The timing of this post and my discussion of it at .conf2017 is interesting...&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 21:55:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/What-is-the-best-practice-Implicit-or-Explicit-Index-Path/m-p/370735#M6043</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2017-10-06T21:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best practice: Implicit or Explicit Index Path Locations?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/What-is-the-best-practice-Implicit-or-Explicit-Index-Path/m-p/370736#M6044</link>
      <description>&lt;P&gt;Hehe busted! Your talk is exactly what got me saying to myself "whyyy am I not doing thisssssssss"&lt;/P&gt;</description>
      <pubDate>Sat, 07 Oct 2017 01:52:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/What-is-the-best-practice-Implicit-or-Explicit-Index-Path/m-p/370736#M6044</guid>
      <dc:creator>paimonsoror</dc:creator>
      <dc:date>2017-10-07T01:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best practice: Implicit or Explicit Index Path Locations?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/What-is-the-best-practice-Implicit-or-Explicit-Index-Path/m-p/370737#M6045</link>
      <description>&lt;P&gt;Huzzah! Glad I could help!&lt;/P&gt;

&lt;P&gt;I asked myself the same thing, and I think it's cause we didn't really promote that &lt;CODE&gt;$_index_name&lt;/CODE&gt; was created. So without that, you were handcuffed from this.&lt;/P&gt;

&lt;P&gt;Anyway, depending on your version, you may see an empty &lt;CODE&gt;$_index_name&lt;/CODE&gt; folder created. But fear not, it is known by the product side and it appears to really have no impact (no data stored in there). Just didn't want you to fear if you saw that.&lt;/P&gt;

&lt;P&gt;Enjoy and glad I could help!&lt;BR /&gt;
(also, make sure you rated the session!)&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 12:59:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/What-is-the-best-practice-Implicit-or-Explicit-Index-Path/m-p/370737#M6045</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2017-10-09T12:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best practice: Implicit or Explicit Index Path Locations?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/What-is-the-best-practice-Implicit-or-Explicit-Index-Path/m-p/370738#M6046</link>
      <description>&lt;P&gt;Plain gorgeous !!!!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
coldPath=$SPLUNK_DB/$_index_name/colddb
homePath=$SPLUNK_DB/$_index_name/db
thawedPath=$SPLUNK_DB/$_index_name/thaweddb
frozenTimePeriodInSecs = 200000
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Oct 2017 13:33:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/What-is-the-best-practice-Implicit-or-Explicit-Index-Path/m-p/370738#M6046</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2017-10-09T13:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best practice: Implicit or Explicit Index Path Locations?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/What-is-the-best-practice-Implicit-or-Explicit-Index-Path/m-p/370739#M6047</link>
      <description>&lt;P&gt;You know how to make an engineer blush! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 14:29:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/What-is-the-best-practice-Implicit-or-Explicit-Index-Path/m-p/370739#M6047</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2017-10-10T14:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best practice: Implicit or Explicit Index Path Locations?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/What-is-the-best-practice-Implicit-or-Explicit-Index-Path/m-p/370740#M6048</link>
      <description>&lt;P&gt;; - ) you know @SloshBurch, I was about to implement it when I realized that for the out-of-the-box indexes we don't specify &lt;CODE&gt;coldPath&lt;/CODE&gt;, &lt;CODE&gt;homePath&lt;/CODE&gt; etc. Would I break anything, if I add this &lt;CODE&gt;default&lt;/CODE&gt; stanza? &lt;/P&gt;

&lt;P&gt;We have them defined as -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[_internal]
repFactor = auto
frozenTimePeriodInSecs = 34186698
maxTotalDataSizeMB = 4000000
enableTsidxReduction = true
timePeriodInSecBeforeTsidxReduction = 3024000
maxDataSize = auto_high_volume

# 395.679375 Days
# Minify .tsidx files 35 Days
[_audit]
repFactor = auto
frozenTimePeriodInSecs = 34186698
enableTsidxReduction = true
timePeriodInSecBeforeTsidxReduction = 3024000
maxDataSize = auto_high_volume
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Oct 2017 15:40:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/What-is-the-best-practice-Implicit-or-Explicit-Index-Path/m-p/370740#M6048</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2017-10-20T15:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best practice: Implicit or Explicit Index Path Locations?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/What-is-the-best-practice-Implicit-or-Explicit-Index-Path/m-p/370741#M6049</link>
      <description>&lt;P&gt;I don't believe so but you should really throw down some btool to be sure. Fair?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 17:05:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/What-is-the-best-practice-Implicit-or-Explicit-Index-Path/m-p/370741#M6049</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2017-10-23T17:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best practice: Implicit or Explicit Index Path Locations?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/What-is-the-best-practice-Implicit-or-Explicit-Index-Path/m-p/370742#M6050</link>
      <description>&lt;P&gt;Perfect @SloshBurch.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 23:08:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/What-is-the-best-practice-Implicit-or-Explicit-Index-Path/m-p/370742#M6050</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2017-10-23T23:08:48Z</dc:date>
    </item>
  </channel>
</rss>

