<?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 How to specify the path of a custom Database, while creating an index using command line in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-the-path-of-a-custom-Database-while-creating-an/m-p/78232#M181615</link>
    <description>&lt;P&gt;Hi
I am trying to create an index on the command line as follows (splunk 4.1.4)
./bin/splunk add index &lt;EM&gt;indexname&lt;/EM&gt; -dir $SPLUNK_DB/&lt;EM&gt;indexdb&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;But for some reason, splunk 4.1.4 fails to recognize "-dir". Does any one know if there is another way of specifying the name of my custom splunk DB, at the command line?&lt;/P&gt;</description>
    <pubDate>Wed, 27 Oct 2010 03:23:01 GMT</pubDate>
    <dc:creator>ajay_hbo</dc:creator>
    <dc:date>2010-10-27T03:23:01Z</dc:date>
    <item>
      <title>How to specify the path of a custom Database, while creating an index using command line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-the-path-of-a-custom-Database-while-creating-an/m-p/78232#M181615</link>
      <description>&lt;P&gt;Hi
I am trying to create an index on the command line as follows (splunk 4.1.4)
./bin/splunk add index &lt;EM&gt;indexname&lt;/EM&gt; -dir $SPLUNK_DB/&lt;EM&gt;indexdb&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;But for some reason, splunk 4.1.4 fails to recognize "-dir". Does any one know if there is another way of specifying the name of my custom splunk DB, at the command line?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2010 03:23:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-specify-the-path-of-a-custom-Database-while-creating-an/m-p/78232#M181615</guid>
      <dc:creator>ajay_hbo</dc:creator>
      <dc:date>2010-10-27T03:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify the path of a custom Database, while creating an index using command line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-the-path-of-a-custom-Database-while-creating-an/m-p/78233#M181616</link>
      <description>&lt;P&gt;from the docs:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;PRE&gt;&lt;CODE&gt;    To use Splunk's CLI, navigate to the $SPLUNK_HOME/bin/ directory and
&lt;/CODE&gt;&lt;/PRE&gt;
  
  &lt;P&gt;use the ./splunk command.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Important: You must stop Splunk before you edit the properties of an
&lt;/CODE&gt;&lt;/PRE&gt;
  
  &lt;P&gt;existing index. You do not need to
  stop Splunk to create a new index.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;To add or edit a new index called "fflanda" using the CLI:

./splunk [add|edit] index fflanda

You can also specify a value for any option in indexes.conf by passing
&lt;/CODE&gt;&lt;/PRE&gt;
  
  &lt;P&gt;it as a flag (for example, -dir) to
  the [add|edit] index  command.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;You must restart Splunk when you create a new index or edit the
&lt;/CODE&gt;&lt;/PRE&gt;
  
  &lt;P&gt;properties of an existing index.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;The command fails with the following error:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;PRE&gt;&lt;CODE&gt;An error occurred:
 Argument "dir" is not supported by this handler.
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Will probably file a doc bug tomorrow and try to find the way its supposed to work..&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2010 14:00:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-specify-the-path-of-a-custom-Database-while-creating-an/m-p/78233#M181616</guid>
      <dc:creator>Genti</dc:creator>
      <dc:date>2010-10-27T14:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify the path of a custom Database, while creating an index using command line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-the-path-of-a-custom-Database-while-creating-an/m-p/78234#M181617</link>
      <description>&lt;P&gt;Doc Bug filed.
Here is the correct command to add an index:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk add index foo -homePath /your/path/foo/db -coldPath /your/path/foo/colddb -thawedPath /your/path/foo/thawedDb
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Oct 2010 06:50:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-specify-the-path-of-a-custom-Database-while-creating-an/m-p/78234#M181617</guid>
      <dc:creator>Genti</dc:creator>
      <dc:date>2010-10-29T06:50:35Z</dc:date>
    </item>
  </channel>
</rss>

