<?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 path not updating correctly in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Index-path-not-updating-correctly/m-p/301692#M19935</link>
    <description>&lt;P&gt;If you change the following settings, the error disappears. Restart is necessary.&lt;BR /&gt;
But is it correct that the capacity of the disk is 5 G or less?&lt;/P&gt;

&lt;P&gt;settings » Server settings » General settings&lt;BR /&gt;
Pause indexing if free disk space (in MB) falls below *&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jan 2018 00:25:23 GMT</pubDate>
    <dc:creator>HiroshiSatoh</dc:creator>
    <dc:date>2018-01-11T00:25:23Z</dc:date>
    <item>
      <title>Index path not updating correctly</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Index-path-not-updating-correctly/m-p/301691#M19934</link>
      <description>&lt;P&gt;Splunk Version 6.6.2&lt;BR /&gt;
I am getting lack of space errors due to poor set-up of our Splunk environment and am trying to resolve, but having issues.&lt;/P&gt;

&lt;P&gt;The error I'm currently receiving (there were others, but this seems to be the last one) is below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Search peer server3 has the following message: Disk Monitor: The index processor has paused data flow. Current free disk space on partition '/' has fallen to 4492MB, below the minimum of 5000MB. Data writes to index path '/opt/splunkhot/_audit/db'cannot safely proceed. Increase free disk space on partition '/' by removing or relocating data.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Steps taken so far:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;I have followed the steps outlined here "&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.0.1/Indexer/Moveanindex"&gt;https://docs.splunk.com/Documentation/Splunk/7.0.1/Indexer/Moveanindex&lt;/A&gt;" to move the indexes to a new location.&lt;/LI&gt;
&lt;LI&gt;I have also updated /opt/splunk/etc/splunk-launch.conf with the following: SPLUNK_DB=/var/lib/db/splunkhot&lt;/LI&gt;
&lt;LI&gt;Splunk has been restarted on indexes and cluster master yet I'm still seeing the above error after restarting.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Not sure what else to check / update.&lt;/P&gt;

&lt;P&gt;Update:&lt;/P&gt;

&lt;P&gt;So.... I have determined the cause of my issue - but now I'm not sure of the best steps to resolve.&lt;/P&gt;

&lt;P&gt;Within master-apps, I have a indexes app which is defining a number of apps specifically - eg not using $SPLUNK_DB in the path.&lt;/P&gt;

&lt;P&gt;How does one update this without breaking index integrity? Under normal processes, one would shutdown the indexer, relocate the indexes and update the path, restart service and all good.&lt;/P&gt;

&lt;P&gt;But when I deploy the app to update - this will restart the services on the index servers automatically - not giving me a chance to copy the indexes. &lt;BR /&gt;
Can I copy prior to pushing the update? or is there a method of deploying where the services are not restarted automatically?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 23:28:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Index-path-not-updating-correctly/m-p/301691#M19934</guid>
      <dc:creator>Kozanic</dc:creator>
      <dc:date>2018-01-10T23:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Index path not updating correctly</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Index-path-not-updating-correctly/m-p/301692#M19935</link>
      <description>&lt;P&gt;If you change the following settings, the error disappears. Restart is necessary.&lt;BR /&gt;
But is it correct that the capacity of the disk is 5 G or less?&lt;/P&gt;

&lt;P&gt;settings » Server settings » General settings&lt;BR /&gt;
Pause indexing if free disk space (in MB) falls below *&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 00:25:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Index-path-not-updating-correctly/m-p/301692#M19935</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2018-01-11T00:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Index path not updating correctly</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Index-path-not-updating-correctly/m-p/301693#M19936</link>
      <description>&lt;P&gt;HI HiroshiSatoh,&lt;/P&gt;

&lt;P&gt;I did see this setting, unfortunately I cannot update it as the current space being used is that shared with the OS and total disk space is down to 5Gb free - hence the attempts to move the indexes.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 00:30:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Index-path-not-updating-correctly/m-p/301693#M19936</guid>
      <dc:creator>Kozanic</dc:creator>
      <dc:date>2018-01-11T00:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Index path not updating correctly</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Index-path-not-updating-correctly/m-p/301694#M19937</link>
      <description>&lt;P&gt;Looking at the message, SPLUNK_DB is not "/var/lib/db/splunkhot", but is the setting OK?&lt;BR /&gt;
Have you restarted?&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Data writes to index path '/opt/splunkhot/_audit/db'cannot safely proceed.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 11 Jan 2018 01:24:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Index-path-not-updating-correctly/m-p/301694#M19937</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2018-01-11T01:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Index path not updating correctly</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Index-path-not-updating-correctly/m-p/301695#M19938</link>
      <description>&lt;P&gt;You may try clearing the messages to see if they return.  I've seen instances where the messages will not clear on their own.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 02:01:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Index-path-not-updating-correctly/m-p/301695#M19938</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-01-11T02:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Index path not updating correctly</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Index-path-not-updating-correctly/m-p/301696#M19939</link>
      <description>&lt;P&gt;Hi @Kozanic&lt;/P&gt;

&lt;P&gt;well, you have installed Splunk on the &lt;CODE&gt;/opt&lt;/CODE&gt; and you're using the &lt;CODE&gt;/opt&lt;/CODE&gt; as well for your indexes. Read about the indexes.conf how to change the homePath for your indexes.&lt;/P&gt;

&lt;P&gt;To move your existing data to another location proceed like this:&lt;/P&gt;

&lt;P&gt;1) stop Splunk&lt;/P&gt;

&lt;P&gt;2) change the &lt;CODE&gt;homePath&lt;/CODE&gt; in &lt;CODE&gt;indexes.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;3)move all existing data from &lt;CODE&gt;old homePath&lt;/CODE&gt; (in your case /opt/splunkhot/_audit/db) to &lt;CODE&gt;new homePath&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;4)start Splunk&lt;/P&gt;

&lt;P&gt;In a cluster environment you should do this on cluster master and then push &lt;CODE&gt;indexes.conf&lt;/CODE&gt; to all indexers.&lt;BR /&gt;
I hope this helps .&lt;/P&gt;

&lt;P&gt;After moving the data you may have to clean eventdata : &lt;/P&gt;

&lt;P&gt;1)Stop Splunk. Erase all your logs under &lt;CODE&gt;$SPLUNK_HOME/var/log/splunk&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;2)Open Command Line and cd to the &lt;CODE&gt;$SPLUNK_HOME/bin directory&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;3)Type &lt;CODE&gt;./splunk clean eventdata&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;4)Enter your splunk admin / password&lt;/P&gt;

&lt;P&gt;5)Start Splunk&lt;/P&gt;

&lt;P&gt;I hope this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 05:52:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Index-path-not-updating-correctly/m-p/301696#M19939</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-11T05:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Index path not updating correctly</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Index-path-not-updating-correctly/m-p/301697#M19940</link>
      <description>&lt;P&gt;Thanks for the help mayurr98.&lt;/P&gt;

&lt;P&gt;I have checked indexes.conf - homePath on all indexes is set to $SPLUNK_DB/IndexName/db/.&lt;/P&gt;

&lt;P&gt;As mentioned, I have updated $SPLUNK_DB via splunk-launch.conf on both indexes in my cluster - yet I'm still seeing some indexes that are using the old path.&lt;/P&gt;

&lt;P&gt;When running &lt;CODE&gt;| dbinspect index=yourindex&lt;/CODE&gt; I get the below. seems to indicate that internal indexes are holding the old path where as others are picking up the new path.&lt;BR /&gt;
_telemetry  -  /opt/splunkhot/_telemetry/db/db_1515589234&lt;BR /&gt;
_introspection  -  /opt/splunkhot/_introspection/db/rb_1515619431&lt;BR /&gt;
dlm_uberagent_log  -  /var/lib/db/splunkhot/dlm_uberAgent_log/db/rb_1515619434&lt;BR /&gt;
dlm_uberagent  -  /var/lib/db/splunkhot/dlm_uberagent/db/rb_1515575095&lt;/P&gt;

&lt;P&gt;Not sure why the internals are holding the old path.&lt;/P&gt;

&lt;P&gt;Is there another spot I need to check for config??&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:38:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Index-path-not-updating-correctly/m-p/301697#M19940</guid>
      <dc:creator>Kozanic</dc:creator>
      <dc:date>2020-09-29T17:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Index path not updating correctly</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Index-path-not-updating-correctly/m-p/301698#M19941</link>
      <description>&lt;P&gt;Messages return after clearing.&lt;/P&gt;

&lt;P&gt;I also see them when I run the health check from Monitoring Console&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 23:13:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Index-path-not-updating-correctly/m-p/301698#M19941</guid>
      <dc:creator>Kozanic</dc:creator>
      <dc:date>2018-01-11T23:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Index path not updating correctly</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Index-path-not-updating-correctly/m-p/301699#M19942</link>
      <description>&lt;P&gt;Are you forwarding the internal events of the master to indexers? (recommended). When you did that, only have to have care about the location in the indexers.&lt;/P&gt;

&lt;P&gt;You have to configure in the indexes.conf a new location for _audit _internal _introspection and the best way is using volume definition.&lt;/P&gt;

&lt;P&gt;Do this in a the master-apps/_cluster/local/indexes.conf&lt;/P&gt;

&lt;P&gt;Certainly copy the default stanza to local/indexes.conf and change the home path&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 03:53:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Index-path-not-updating-correctly/m-p/301699#M19942</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-12T03:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Index path not updating correctly</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Index-path-not-updating-correctly/m-p/301700#M19943</link>
      <description>&lt;P&gt;A few times&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 00:51:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Index-path-not-updating-correctly/m-p/301700#M19943</guid>
      <dc:creator>Kozanic</dc:creator>
      <dc:date>2018-01-15T00:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Index path not updating correctly</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Index-path-not-updating-correctly/m-p/301701#M19944</link>
      <description>&lt;P&gt;You need to either:&lt;/P&gt;

&lt;P&gt;A: define master-apps/app/default/indexes.conf in an app named appropriately so that it takes precedence over these other apps. Maybe prefix them with &lt;CODE&gt;A_&lt;/CODE&gt; or &lt;CODE&gt;1_&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;B: define master-apps/app/&lt;EM&gt;local&lt;/EM&gt;/indexes.conf, which will take precedence over &lt;EM&gt;any&lt;/EM&gt; default/indexes.conf.&lt;/P&gt;

&lt;P&gt;Consult the &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.1/Admin/Wheretofindtheconfigurationfiles"&gt;Configuration file precedence&lt;/A&gt; documentation to see the full explanation of which app/config takes precedence.&lt;/P&gt;

&lt;P&gt;In my opinion it's wrong for 3rd party apps to configure index paths without making use of the environment variable.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 01:31:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Index-path-not-updating-correctly/m-p/301701#M19944</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-01-15T01:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Index path not updating correctly</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Index-path-not-updating-correctly/m-p/301702#M19945</link>
      <description>&lt;P&gt;After Speaking with Splunk support in conjunction with the details outlined here: "&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.0.1/Indexer/Moveanindex"&gt;https://docs.splunk.com/Documentation/Splunk/7.0.1/Indexer/Moveanindex&lt;/A&gt;"  steps taken were as follows:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Set Cluster Master into maintenance mode&lt;/LI&gt;
&lt;LI&gt;spot index server 1, apply required updates to index app and splunk-launch.conf to point indexes to correct location&lt;/LI&gt;
&lt;LI&gt;copy index folders from old location to new location&lt;/LI&gt;
&lt;LI&gt;Start index server- confirm start correctly&lt;/LI&gt;
&lt;LI&gt;repeat steps 2-4 on remaining index servers&lt;/LI&gt;
&lt;LI&gt;remove cluster master from maintenance mode&lt;/LI&gt;
&lt;LI&gt;Update index app within master apps&lt;/LI&gt;
&lt;LI&gt;re-deploy updated app&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;After following these steps I can confirm that all indexes now pointing to the correct spots with no issues.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 04:44:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Index-path-not-updating-correctly/m-p/301702#M19945</guid>
      <dc:creator>Kozanic</dc:creator>
      <dc:date>2018-01-16T04:44:11Z</dc:date>
    </item>
  </channel>
</rss>

