<?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 am I getting error &amp;quot;Cannot create index 'main': path of coldToFrozenDir must be absolute&amp;quot; trying to move/archive files on Windows? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Cannot-create-index-main-path-of/m-p/286823#M54785</link>
    <description>&lt;P&gt;I do not, should I?&lt;BR /&gt;
First time doing this.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Joe&lt;/P&gt;</description>
    <pubDate>Tue, 22 Dec 2015 11:16:27 GMT</pubDate>
    <dc:creator>hagjos43</dc:creator>
    <dc:date>2015-12-22T11:16:27Z</dc:date>
    <item>
      <title>Why am I getting error "Cannot create index 'main': path of coldToFrozenDir must be absolute" trying to move/archive files on Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Cannot-create-index-main-path-of/m-p/286821#M54783</link>
      <description>&lt;P&gt;I'm working in a test lab trying to move/archive files using the following indexes.conf file on our cluster master:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[main]
repFactor = auto
homePath   = $SPLUNK_DB\defaultdb\db
coldPath   = $SPLUNK_DB\defaultdb\colddb
thawedPath = $SPLUNK_DB\defaultdb\thaweddb
maxWarmDBCount = 2
maxDataSize = auto_high_volume
frozenTimePeriodInSecs = 86400
coldToFrozenDir = "$SPLUNK_HOME\Archive\defaultdb" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm getting the following error when trying to distribute it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Vader:Cannot create index 'main': path of coldToFrozenDir must be absolute ('"C:\Program Files\Splunk"')
Palpatine:Cannot create index 'main': path of coldToFrozenDir must be absolute ('"C:\Program Files\Splunk"')
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Joe&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2015 20:36:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Cannot-create-index-main-path-of/m-p/286821#M54783</guid>
      <dc:creator>hagjos43</dc:creator>
      <dc:date>2015-12-21T20:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "Cannot create index 'main': path of coldToFrozenDir must be absolute" trying to move/archive files on Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Cannot-create-index-main-path-of/m-p/286822#M54784</link>
      <description>&lt;P&gt;Dumb question, but do you have &lt;CODE&gt;defaultdb&lt;/CODE&gt; created in  &lt;CODE&gt;C:\Program Files\Splunk\Archive\&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2015 21:04:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Cannot-create-index-main-path-of/m-p/286822#M54784</guid>
      <dc:creator>jerniganbrandon</dc:creator>
      <dc:date>2015-12-21T21:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "Cannot create index 'main': path of coldToFrozenDir must be absolute" trying to move/archive files on Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Cannot-create-index-main-path-of/m-p/286823#M54785</link>
      <description>&lt;P&gt;I do not, should I?&lt;BR /&gt;
First time doing this.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Joe&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2015 11:16:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Cannot-create-index-main-path-of/m-p/286823#M54785</guid>
      <dc:creator>hagjos43</dc:creator>
      <dc:date>2015-12-22T11:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "Cannot create index 'main': path of coldToFrozenDir must be absolute" trying to move/archive files on Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Cannot-create-index-main-path-of/m-p/286824#M54786</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;You have to setup &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;coldToFrozenDir = C:\Program Files\Splunk\Archive\defaultdb"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope help you&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2015 12:07:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Cannot-create-index-main-path-of/m-p/286824#M54786</guid>
      <dc:creator>jmallorquin</dc:creator>
      <dc:date>2015-12-22T12:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "Cannot create index 'main': path of coldToFrozenDir must be absolute" trying to move/archive files on Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Cannot-create-index-main-path-of/m-p/286825#M54787</link>
      <description>&lt;P&gt;I modified my indexes.conf to reflect this and it did not work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[main]
repFactor = auto
homePath   = $SPLUNK_DB\defaultdb\db
coldPath   = $SPLUNK_DB\defaultdb\colddb
thawedPath = $SPLUNK_DB\defaultdb\thaweddb
maxWarmDBCount = 2
maxDataSize = auto_high_volume
frozenTimePeriodInSecs = 86400
coldToFrozenDir = "C:\Program Files\Splunk\Archive\defaultdb" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Still getting:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Cannot create index 'main': path of coldToFrozenDir must be absolute ('"C:\Program Files\Splunk\Archive\defaultdb"')
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Dec 2015 17:02:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Cannot-create-index-main-path-of/m-p/286825#M54787</guid>
      <dc:creator>hagjos43</dc:creator>
      <dc:date>2015-12-22T17:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "Cannot create index 'main': path of coldToFrozenDir must be absolute" trying to move/archive files on Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Cannot-create-index-main-path-of/m-p/286826#M54788</link>
      <description>&lt;P&gt;I figured out my issue....a simple typo was causing the issue.&lt;/P&gt;

&lt;P&gt;For reference this is what I had:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [main]
 repFactor = auto
 homePath   = $SPLUNK_DB\defaultdb\db
 coldPath   = $SPLUNK_DB\defaultdb\colddb
 thawedPath = $SPLUNK_DB\defaultdb\thaweddb
 maxWarmDBCount = 2
 maxDataSize = auto_high_volume
 frozenTimePeriodInSecs = 86400
 coldToFrozenDir = "C:\Program Files\Splunk\Archive\defaultdb" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is what I did to fix it (remove the quotes around the coldToFrozenDir path and add $SPLUNK_HOME):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[main]
repFactor = auto
homePath   = $SPLUNK_DB\defaultdb\db
coldPath   = $SPLUNK_DB\defaultdb\colddb
thawedPath = $SPLUNK_DB\defaultdb\thaweddb
maxWarmDBCount = 2
maxDataSize = auto_high_volume
frozenTimePeriodInSecs = 86400
coldToFrozenDir = $SPLUNK_HOME\Splunk\Archive\defaultdb
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Dec 2015 17:11:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Cannot-create-index-main-path-of/m-p/286826#M54788</guid>
      <dc:creator>hagjos43</dc:creator>
      <dc:date>2015-12-22T17:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "Cannot create index 'main': path of coldToFrozenDir must be absolute" trying to move/archive files on Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Cannot-create-index-main-path-of/m-p/286827#M54789</link>
      <description>&lt;P&gt;Go ahead and create the directory structure and see if that works. It is probably complaining that the directory doesn't exist, so it isn't able to write the index files. &lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2015 17:13:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Cannot-create-index-main-path-of/m-p/286827#M54789</guid>
      <dc:creator>jerniganbrandon</dc:creator>
      <dc:date>2015-12-22T17:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "Cannot create index 'main': path of coldToFrozenDir must be absolute" trying to move/archive files on Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Cannot-create-index-main-path-of/m-p/286828#M54790</link>
      <description>&lt;P&gt;No quotes&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;coldToFrozenDir = C:\Program Files\Splunk\Archive\defaultdb
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hope help you&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2015 17:13:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Cannot-create-index-main-path-of/m-p/286828#M54790</guid>
      <dc:creator>jmallorquin</dc:creator>
      <dc:date>2015-12-22T17:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "Cannot create index 'main': path of coldToFrozenDir must be absolute" trying to move/archive files on Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Cannot-create-index-main-path-of/m-p/286829#M54791</link>
      <description>&lt;P&gt;Ah, that error message makes sense now with the double quoting. Good catch!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2015 17:19:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Cannot-create-index-main-path-of/m-p/286829#M54791</guid>
      <dc:creator>jerniganbrandon</dc:creator>
      <dc:date>2015-12-22T17:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "Cannot create index 'main': path of coldToFrozenDir must be absolute" trying to move/archive files on Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Cannot-create-index-main-path-of/m-p/286830#M54792</link>
      <description>&lt;P&gt;So it works, but my buckets did not move. They were simply deleted out of the following directory:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_HOME\var\lib\splunk\defaultdb\colddb
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2015 17:23:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Cannot-create-index-main-path-of/m-p/286830#M54792</guid>
      <dc:creator>hagjos43</dc:creator>
      <dc:date>2015-12-22T17:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "Cannot create index 'main': path of coldToFrozenDir must be absolute" trying to move/archive files on Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Cannot-create-index-main-path-of/m-p/286831#M54793</link>
      <description>&lt;P&gt;Eh I think I found my second issue..... man I'm full of typos and out of coffee today.... SMH.&lt;/P&gt;

&lt;P&gt;Looks like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;coldToFrozenDir = $SPLUNK_HOME\Splunk\Archive\defaultdb
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Should really be: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;coldToFrozenDir = $SPLUNK_HOME\Archive\defaultdb
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Dec 2015 17:42:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Cannot-create-index-main-path-of/m-p/286831#M54793</guid>
      <dc:creator>hagjos43</dc:creator>
      <dc:date>2015-12-22T17:42:43Z</dc:date>
    </item>
  </channel>
</rss>

