<?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: Relocate KVstore files on filesystem in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Relocate-KVstore-files-on-filesystem/m-p/278119#M2449</link>
    <description>&lt;P&gt;Good question! And what about relocating a single Collection inside the KVStore? I'm generating a sample collection for an app and I'd like to export just that collection instead of all the KV Store.&lt;BR /&gt;
Is it possible?&lt;/P&gt;

&lt;P&gt;marco&lt;/P&gt;</description>
    <pubDate>Sat, 10 Dec 2016 09:11:06 GMT</pubDate>
    <dc:creator>marcoscala</dc:creator>
    <dc:date>2016-12-10T09:11:06Z</dc:date>
    <item>
      <title>Relocate KVstore files on filesystem</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Relocate-KVstore-files-on-filesystem/m-p/278116#M2446</link>
      <description>&lt;P&gt;I am extensively using KV Store for a project and have run into an issue with where the files are stored on disk.  There is a long sorted history to the disk layout, but I am not delving into that at this time.&lt;/P&gt;

&lt;P&gt;The server is a Windows 2012 server running Splunk 6.3.3.  The C: drive is 96GB in size (with 9.7GB free) and the F: drive is 2 TB in size (with 1.7 TB free).  Splunk is installed to the C: drive as per corporate standards.  My KV store is currently 60GB in size.  My issue is that the KV store files exist in the default index location at  $SPLUNK_HOME$\var\lib\splunk and I do not see any documentation related to relocating the KV store to a different filesystem like is possible with indexes.&lt;/P&gt;

&lt;P&gt;I've tried to update the indexes.conf to point it to a different filesystem as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]

[kvstore]
homePath   = F:\Splunk\var\lib\splunk\kvstore\db
coldPath   = F:\Splunk\var\lib\splunk\kvstore\colddb
thawedPath = $SPLUNK_DB\kvstore\thaweddb
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However that does not move the mongo directory or the dumps directory under the kvstore directory.&lt;/P&gt;

&lt;P&gt;I suspect (but have not tried yet) that updating the kvstore stanza to something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[kvstore]
mongoPath = F:\Splunk\var\lib\splunk\kvstore\mongo
dumpsPath = F:\Splunk\var\lib\splunk\kvstore\dumps
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;might to the trick, but thought I'd check with the larger audience before I go breaking stuff.&lt;/P&gt;

&lt;P&gt;So how about it?  Has anyone successfully relocated the kv store files by using indexes.conf?  If so, how did you do it?&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2016 14:32:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Relocate-KVstore-files-on-filesystem/m-p/278116#M2446</guid>
      <dc:creator>jimodonald</dc:creator>
      <dc:date>2016-04-07T14:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Relocate KVstore files on filesystem</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Relocate-KVstore-files-on-filesystem/m-p/278117#M2447</link>
      <description>&lt;P&gt;hello did you find any solution for that ? &lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 12:08:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Relocate-KVstore-files-on-filesystem/m-p/278117#M2447</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2016-10-07T12:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Relocate KVstore files on filesystem</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Relocate-KVstore-files-on-filesystem/m-p/278118#M2448</link>
      <description>&lt;P&gt;I have not tested this yet -- haven't had time yet, but I did find this stanza in &lt;STRONG&gt;server.conf&lt;/STRONG&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[kvstore]
dbPath = &amp;lt;path&amp;gt;
 * Path where KV Store data is stored.
 * Changing this directory after initial startup does not move existing data.
  The contents of the directory should be manually moved to the new
  location.
 * Defaults to $SPLUNK_DB/kvstore.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;so in theory you should be able to define the path for the kvstore in &lt;STRONG&gt;server.conf.&lt;/STRONG&gt;  If you try it out, please post back with your results.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;UPDATE:  This has been tested successfully and worked exactly like you'd expect it to.  Just like moving an index.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 13:10:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Relocate-KVstore-files-on-filesystem/m-p/278118#M2448</guid>
      <dc:creator>jimodonald</dc:creator>
      <dc:date>2016-10-07T13:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Relocate KVstore files on filesystem</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Relocate-KVstore-files-on-filesystem/m-p/278119#M2449</link>
      <description>&lt;P&gt;Good question! And what about relocating a single Collection inside the KVStore? I'm generating a sample collection for an app and I'd like to export just that collection instead of all the KV Store.&lt;BR /&gt;
Is it possible?&lt;/P&gt;

&lt;P&gt;marco&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2016 09:11:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Relocate-KVstore-files-on-filesystem/m-p/278119#M2449</guid>
      <dc:creator>marcoscala</dc:creator>
      <dc:date>2016-12-10T09:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Relocate KVstore files on filesystem</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Relocate-KVstore-files-on-filesystem/m-p/278120#M2450</link>
      <description>&lt;P&gt;Added a stanza in etc\system\local\server.conf. It works, thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 00:23:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Relocate-KVstore-files-on-filesystem/m-p/278120#M2450</guid>
      <dc:creator>redflexigork</dc:creator>
      <dc:date>2017-09-13T00:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Relocate KVstore files on filesystem</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Relocate-KVstore-files-on-filesystem/m-p/278121#M2451</link>
      <description>&lt;P&gt;How to implement this in a cluster ?? &lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 18:03:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Relocate-KVstore-files-on-filesystem/m-p/278121#M2451</guid>
      <dc:creator>nawazns5038</dc:creator>
      <dc:date>2018-05-22T18:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Relocate KVstore files on filesystem</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Relocate-KVstore-files-on-filesystem/m-p/278122#M2452</link>
      <description>&lt;P&gt;Put the server.conf into an app and deploy it from your cluster master  just like any other app you’d deploy.  However it’s generally not recommended to run a kvstore on your indexers.  &lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 18:06:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Relocate-KVstore-files-on-filesystem/m-p/278122#M2452</guid>
      <dc:creator>jimodonald</dc:creator>
      <dc:date>2018-05-22T18:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Relocate KVstore files on filesystem</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Relocate-KVstore-files-on-filesystem/m-p/278123#M2453</link>
      <description>&lt;P&gt;This worked perfect! Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 17:55:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Relocate-KVstore-files-on-filesystem/m-p/278123#M2453</guid>
      <dc:creator>mikelauth</dc:creator>
      <dc:date>2019-06-14T17:55:06Z</dc:date>
    </item>
  </channel>
</rss>

