<?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.conf error in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Index-conf-error/m-p/690647#M114902</link>
    <description>&lt;P&gt;I was able to solve this halfway through writing this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For future reference, you cant have the $SPlunk_HOME referenced in the $SPLUNK_DB. At least for me, the server hadnt restarted and updated the value, so it didnt recognize it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I had to set the path manually,&amp;nbsp;&lt;/P&gt;&lt;P&gt;$SPLUNK_DB=/export/opt/splunk/data&lt;/P&gt;&lt;P&gt;Don't forget to leave the trailing / out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The you can have your indexes.conf look like:&lt;/P&gt;&lt;PRE&gt;homePath = $SPLUNK_DB/hot/$_index_name/db
coldPath = $SPLUNK_DB/cold/$_index_name/colddb&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jun 2024 16:44:41 GMT</pubDate>
    <dc:creator>Abass42</dc:creator>
    <dc:date>2024-06-13T16:44:41Z</dc:date>
    <item>
      <title>Index.conf error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Index-conf-error/m-p/690646#M114901</link>
      <description>&lt;P&gt;Hey, I am setting up a Splunk Dev env. I have one indexer, one SH, and one forwarder. I have uninstalled and reinstalled the Dev Indexer. I am trying to set it up to use two different filesystems as cold/hot data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error im receiving when i restart Splunk is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Problem parsing indexes.conf: Cannot load IndexConfig: Cannot create index '_audit': path of homePath must be absolute ('$SPLUNK_HOME/data/audit/db')
Validating databases (splunkd validatedb) failed with code '1'.  If you cannot resolve the issue(s) above after consulting documentation, please file a case online at http://www.splunk.com/page/submit_issue&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im not sure how to set this up correctly. I reinstalled the indexer so i could fix the mounts and storage.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the /export/opt/splunk/etc/system.local/indexes.conf, i have something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[default]
homePath = $SPLUNK_DB/hot/$_index_name/db
coldPath = $SPLUNK_DB/cold/$_index_name/colddb&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For my Splunk_DB, I have tried to set it in the Splunk-Launch.conf, as shown below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#   Version 9.2.0.1

# Modify the following line to suit the location of your Splunk install.
# If unset, Splunk will use the parent of the directory containing the splunk
# CLI executable.
#
SPLUNK_HOME=/export/opt/splunk/

# By default, Splunk stores its indexes under SPLUNK_HOME in the
# var/lib/splunk subdirectory.  This can be overridden
# here:
#
SPLUNK_DB=$SPLUNK_HOME/data/
# Splunkd daemon name
SPLUNK_SERVER_NAME=Splunkd

# If SPLUNK_OS_USER is set, then Splunk service will only start
# if the 'splunk [re]start [splunkd]' command is invoked by a user who
# is, or can effectively become via setuid(2), $SPLUNK_OS_USER.
# (This setting can be specified as username or as UID.)
#
# SPLUNK_OS_USER
PYTHONHTTPSVERIFY=0
PYTHONUTF8=1
ENABLE_CPUSHARES=true&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 16:41:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Index-conf-error/m-p/690646#M114901</guid>
      <dc:creator>Abass42</dc:creator>
      <dc:date>2024-06-13T16:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Index.conf error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Index-conf-error/m-p/690647#M114902</link>
      <description>&lt;P&gt;I was able to solve this halfway through writing this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For future reference, you cant have the $SPlunk_HOME referenced in the $SPLUNK_DB. At least for me, the server hadnt restarted and updated the value, so it didnt recognize it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I had to set the path manually,&amp;nbsp;&lt;/P&gt;&lt;P&gt;$SPLUNK_DB=/export/opt/splunk/data&lt;/P&gt;&lt;P&gt;Don't forget to leave the trailing / out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The you can have your indexes.conf look like:&lt;/P&gt;&lt;PRE&gt;homePath = $SPLUNK_DB/hot/$_index_name/db
coldPath = $SPLUNK_DB/cold/$_index_name/colddb&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 16:44:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Index-conf-error/m-p/690647#M114902</guid>
      <dc:creator>Abass42</dc:creator>
      <dc:date>2024-06-13T16:44:41Z</dc:date>
    </item>
  </channel>
</rss>

