<?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: $_Index_name Variable Need To Know How To Setup Correctly in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Index-name-Variable-Need-To-Know-How-To-Setup-Correctly/m-p/411836#M14760</link>
    <description>&lt;P&gt;&lt;CODE&gt;$_index_name&lt;/CODE&gt; is not an environment variable.  It's a Splunk shortcut available only for the hotPath, coldPath, and summaryHomePath attributes.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jun 2019 15:01:22 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2019-06-10T15:01:22Z</dc:date>
    <item>
      <title>$_Index_name Variable Need To Know How To Setup Correctly</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Index-name-Variable-Need-To-Know-How-To-Setup-Correctly/m-p/411835#M14759</link>
      <description>&lt;P&gt;I'm working on trying to figure out how to get the index name to show up correctly instead of placing the files in a folder named '$_index_name' on my backup folder on the indexer.&lt;/P&gt;

&lt;P&gt;On the Cluster Master under $Splunk_Home/etc/master-apps/local/indexes.conf I have the following:&lt;/P&gt;

&lt;P&gt;[default]&lt;BR /&gt;
homePath = volume:primary/$_index_name/db  --works correctly with variable&lt;BR /&gt;
coldPath = volume:cold/$_index_name/db  --works correctly with variable&lt;BR /&gt;
&lt;STRONG&gt;coldToFrozenDir = /'foldername'/frozen/$_index_name&lt;/STRONG&gt; --DOES NOT WORK CORRECTLY -'foldername' is irrelevant here and just a name of a folder.&lt;/P&gt;

&lt;P&gt;Now, on the Indexer, where I want the data to go is to /'foldername'/frozen/&lt;/P&gt;

&lt;P&gt;It's getting there on the Indexer however, it's coming in as /'foldername'/frozen/&lt;STRONG&gt;$_index_name&lt;/STRONG&gt;/db&lt;/P&gt;

&lt;P&gt;I'm running into the issue that this '$_index_name' is not translating to the index name and has created a folder named '$_index_name' instead of the actual index name.&lt;/P&gt;

&lt;P&gt;Looking for a little guidance and solution to this challenge.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Should I NOT use the environment variable and use only the absolute path on the 'coldToFrozenDir'?&lt;/LI&gt;
&lt;LI&gt;This is only on 1 indexer which I want to roll down to about 9 more so I'm looking for the best practice.&lt;/LI&gt;
&lt;LI&gt;I've looked here before posting this question: &lt;A href="https://answers.splunk.com/answers/108178/index-name-variable-to-use-in-all-index-paths.html" target="_blank"&gt;https://answers.splunk.com/answers/108178/index-name-variable-to-use-in-all-index-paths.html&lt;/A&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Any insight will be helpful moving forward.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:50:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Index-name-Variable-Need-To-Know-How-To-Setup-Correctly/m-p/411835#M14759</guid>
      <dc:creator>gregbaskin</dc:creator>
      <dc:date>2020-09-30T00:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: $_Index_name Variable Need To Know How To Setup Correctly</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Index-name-Variable-Need-To-Know-How-To-Setup-Correctly/m-p/411836#M14760</link>
      <description>&lt;P&gt;&lt;CODE&gt;$_index_name&lt;/CODE&gt; is not an environment variable.  It's a Splunk shortcut available only for the hotPath, coldPath, and summaryHomePath attributes.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 15:01:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Index-name-Variable-Need-To-Know-How-To-Setup-Correctly/m-p/411836#M14760</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-06-10T15:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: $_Index_name Variable Need To Know How To Setup Correctly</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Index-name-Variable-Need-To-Know-How-To-Setup-Correctly/m-p/411837#M14761</link>
      <description>&lt;P&gt;Ok, thanks. Is there a better way to set this up where it creates the 'index name' instead of the folder like it is doing with the databases under that folder?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 15:06:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Index-name-Variable-Need-To-Know-How-To-Setup-Correctly/m-p/411837#M14761</guid>
      <dc:creator>gregbaskin</dc:creator>
      <dc:date>2019-06-10T15:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: $_Index_name Variable Need To Know How To Setup Correctly</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Index-name-Variable-Need-To-Know-How-To-Setup-Correctly/m-p/411838#M14762</link>
      <description>&lt;P&gt;Copy-and-paste the index name from the stanza to the attribute.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 17:47:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Index-name-Variable-Need-To-Know-How-To-Setup-Correctly/m-p/411838#M14762</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-06-10T17:47:30Z</dc:date>
    </item>
  </channel>
</rss>

