<?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: Attempting to restore a KVStore collection: has anyone seen or successfully troubleshooted the following error? in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Attempting-to-restore-a-KVStore-collection-has-anyone-seen-or/m-p/421247#M3708</link>
    <description>&lt;P&gt;Try this ! &lt;/P&gt;

&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/app/3536/"&gt;https://splunkbase.splunk.com/app/3536/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;It's way easier to use! &lt;/P&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
D&lt;/P&gt;</description>
    <pubDate>Tue, 09 Oct 2018 09:17:06 GMT</pubDate>
    <dc:creator>DavidHourani</dc:creator>
    <dc:date>2018-10-09T09:17:06Z</dc:date>
    <item>
      <title>Attempting to restore a KVStore collection: has anyone seen or successfully troubleshooted the following error?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Attempting-to-restore-a-KVStore-collection-has-anyone-seen-or/m-p/421246#M3707</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;

&lt;P&gt;I am currently trying to achieve a quite simple process: set up a scalable way to backup/restore some KVStore collections from production Splunk servers.&lt;/P&gt;

&lt;P&gt;Following the appropriate Splunk documentation (&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.1.2/Admin/BackupKVstore"&gt;https://docs.splunk.com/Documentation/Splunk/7.1.2/Admin/BackupKVstore&lt;/A&gt;), i was able to successfully backup my collections in JSON formatted files.&lt;/P&gt;

&lt;P&gt;However, when i try to restore them to the same production server, it fails with the following errors (from /opt/splunk/var/log/splunkd.log):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk: ERROR 1535113443.183 KVStorageProvider - An error occurred during the last operation ('dropCollection', domain: '5', code: '26'): ns not found
splunk: WARN  1535113443.188 KVStoreAdminHandler - No data found to restore matching specified parameters archiveName="backupfile.tar.gz", appName="all apps", collectionName="collection"
splunk: ERROR 1535113443.188 KVStoreAdminHandler - \n
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This seems quite cryptic to me. I am wondering whether anyone could have encounter a similar issue or error message, or could know some troubleshooting tips that will help me solving this?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 14:47:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Attempting-to-restore-a-KVStore-collection-has-anyone-seen-or/m-p/421246#M3707</guid>
      <dc:creator>pabdola</dc:creator>
      <dc:date>2018-08-24T14:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Attempting to restore a KVStore collection: has anyone seen or successfully troubleshooted the following error?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Attempting-to-restore-a-KVStore-collection-has-anyone-seen-or/m-p/421247#M3708</link>
      <description>&lt;P&gt;Try this ! &lt;/P&gt;

&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/app/3536/"&gt;https://splunkbase.splunk.com/app/3536/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;It's way easier to use! &lt;/P&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
D&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 09:17:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Attempting-to-restore-a-KVStore-collection-has-anyone-seen-or/m-p/421247#M3708</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2018-10-09T09:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Attempting to restore a KVStore collection: has anyone seen or successfully troubleshooted the following error?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Attempting-to-restore-a-KVStore-collection-has-anyone-seen-or/m-p/421248#M3709</link>
      <description>&lt;P&gt;Thanks for your reply David. This application seems interesting, but it seems very WebUI-focused, whereas i am trying to use CLI as much as possible, in order to be able to automate things. It is always good to discover new applications though, so i will probably give a go to this app! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Oct 2018 09:10:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Attempting-to-restore-a-KVStore-collection-has-anyone-seen-or/m-p/421248#M3709</guid>
      <dc:creator>pabdola</dc:creator>
      <dc:date>2018-10-12T09:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Attempting to restore a KVStore collection: has anyone seen or successfully troubleshooted the following error?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Attempting-to-restore-a-KVStore-collection-has-anyone-seen-or/m-p/421249#M3710</link>
      <description>&lt;P&gt;yeah for CLI go for commands added after 7.0. &lt;/P&gt;

&lt;P&gt;The app gives you advanced search commands queries only &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; pretty useful for backing up and importing kv back into SHC.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Oct 2018 09:14:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Attempting-to-restore-a-KVStore-collection-has-anyone-seen-or/m-p/421249#M3710</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2018-10-12T09:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Attempting to restore a KVStore collection: has anyone seen or successfully troubleshooted the following error?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Attempting-to-restore-a-KVStore-collection-has-anyone-seen-or/m-p/421250#M3711</link>
      <description>&lt;P&gt;Just in case someone faces the same issue that i did, here is a fix that &lt;STRONG&gt;Andrew from Splunk Support&lt;/STRONG&gt; gave me.&lt;BR /&gt;
Just edit the following stanza/parameter into your "&lt;STRONG&gt;limits.conf&lt;/STRONG&gt;" configuration file:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[kvstore]
max_documents_per_batch_save = &amp;lt;unsigned int&amp;gt;
* The maximum number of documents that can be saved in a single batch
* Default: 1000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;After raising this "&lt;STRONG&gt;max_documents_per_batch_save&lt;/STRONG&gt;" parameter to a value superior to the number of entries found into your Collection, you should be able to restore it properly.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:33:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Attempting-to-restore-a-KVStore-collection-has-anyone-seen-or/m-p/421250#M3711</guid>
      <dc:creator>pabdola</dc:creator>
      <dc:date>2020-09-29T21:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Attempting to restore a KVStore collection: has anyone seen or successfully troubleshooted the following error?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Attempting-to-restore-a-KVStore-collection-has-anyone-seen-or/m-p/421251#M3712</link>
      <description>&lt;P&gt;Yes, i was trying to use those commands, but was hitting a number of entries limit (1000) while using the "restore kvstore" CLI command. A fix was found thanks to Splunk Support as described in my answer below.&lt;/P&gt;

&lt;P&gt;It is surely interesting to be able to trigger backup/restore directly from WebUI using SPL.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Oct 2018 09:23:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Attempting-to-restore-a-KVStore-collection-has-anyone-seen-or/m-p/421251#M3712</guid>
      <dc:creator>pabdola</dc:creator>
      <dc:date>2018-10-12T09:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Attempting to restore a KVStore collection: has anyone seen or successfully troubleshooted the following error?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Attempting-to-restore-a-KVStore-collection-has-anyone-seen-or/m-p/421252#M3713</link>
      <description>&lt;P&gt;In addition to the modification above, if the number of entry in you collection exceeds 50000, another "limits.conf" parameter must be modified:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [kvstore]
max_rows_per_query = &amp;lt;unsigned int&amp;gt;
* The maximum number of rows that will be returned for a single query to 
  a collection.
* If the query returns more rows than the specified value, then returned 
  result set will contain the number of rows specified in this value.
* Default: 50000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Otherwise, the restored KVstore collection will be truncated to 50000 entries.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Oct 2018 11:18:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Attempting-to-restore-a-KVStore-collection-has-anyone-seen-or/m-p/421252#M3713</guid>
      <dc:creator>pabdola</dc:creator>
      <dc:date>2018-10-12T11:18:28Z</dc:date>
    </item>
  </channel>
</rss>

