<?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: How to clean KVstore on search head cluster nodes in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/How-to-clean-KVstore-on-search-head-cluster-nodes/m-p/461957#M4101</link>
    <description>&lt;P&gt;You need to identify which KVStore collection is taking lot of space and decide if that is required or not . Don't just remove all KVStore collections in your SHC environment unless you understand the impact.&lt;/P&gt;

&lt;P&gt;I would start with Checking the KVStore collection size in DMC and find out which collections are taking more size and go from there. &lt;/P&gt;

&lt;P&gt;If you need to remove one collection individually in SHC, you can use | outputlookup&lt;BR /&gt;&lt;BR /&gt;
to remove it.&lt;/P&gt;

&lt;P&gt;If you decide to backup your kvstore and restore it later you can refer below documentation .&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.1/Admin/BackupKVstore"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.1/Admin/BackupKVstore&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;To delete the KVStore on members you can refer below documentation.&lt;/P&gt;

&lt;P&gt;Refer documentation &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.1/Admin/ResyncKVstore"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.1/Admin/ResyncKVstore&lt;/A&gt; &lt;/P&gt;</description>
    <pubDate>Wed, 08 Jan 2020 21:24:09 GMT</pubDate>
    <dc:creator>badrinath_itrs</dc:creator>
    <dc:date>2020-01-08T21:24:09Z</dc:date>
    <item>
      <title>How to clean KVstore on search head cluster nodes</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-clean-KVstore-on-search-head-cluster-nodes/m-p/461954#M4098</link>
      <description>&lt;P&gt;Happy Splunking,&lt;/P&gt;
&lt;P&gt;We have a situation on our search head cluster nodes and one of the peer node KVstore is filling up, so not sure we can clean manually or is there any process to backup and clean?&lt;BR /&gt;What are the limitations if we clean all the data?&lt;/P&gt;
&lt;P&gt;/opt/splunk/var/lib/splunk/kvstore -190GB&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jun 2020 17:42:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-clean-KVstore-on-search-head-cluster-nodes/m-p/461954#M4098</guid>
      <dc:creator>Splunk_rocks</dc:creator>
      <dc:date>2020-06-06T17:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean KVstore on search head cluster nodes</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-clean-KVstore-on-search-head-cluster-nodes/m-p/461955#M4099</link>
      <description>&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.0/Admin/BackupKVstore"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.0/Admin/BackupKVstore&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 20:33:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-clean-KVstore-on-search-head-cluster-nodes/m-p/461955#M4099</guid>
      <dc:creator>starcher</dc:creator>
      <dc:date>2019-12-13T20:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean KVstore on search head cluster nodes</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-clean-KVstore-on-search-head-cluster-nodes/m-p/461956#M4100</link>
      <description>&lt;P&gt;I have found way to clean KV store app and collection &lt;/P&gt;

&lt;P&gt;You can run following command to see which app and collection taking more space &lt;/P&gt;

&lt;P&gt;| rest /services/server/introspection/kvstore/collectionstats&lt;BR /&gt;
| mvexpand data&lt;BR /&gt;
| spath input=data&lt;BR /&gt;
| rex field=ns "(?.&lt;EM&gt;).(?.&lt;/EM&gt;)"&lt;BR /&gt;
| eval dbsize=round(size/1024/1024, 2)&lt;BR /&gt;
| eval indexsize=round(totalIndexSize/1024/1024, 2),dbsizegb=round(dbsize/1024, 2)&lt;BR /&gt;
| stats first(count) AS "Number of Objects" first(nindexes) AS Accelerations first(indexsize) AS "Acceleration Size (MB)" first(dbsize) AS "Collection Size (MB)" first(dbsizegb) as "Collection Size (GB)" by App, Collection&lt;/P&gt;

&lt;P&gt;Then based on size you can use below command to clean as your required on nodes &lt;/P&gt;

&lt;P&gt;/opt/splunk/bin/splunk clean kvstore -app -collection &lt;/P&gt;

&lt;P&gt;I hope this will help folks&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 21:17:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-clean-KVstore-on-search-head-cluster-nodes/m-p/461956#M4100</guid>
      <dc:creator>Splunk_rocks</dc:creator>
      <dc:date>2020-01-08T21:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean KVstore on search head cluster nodes</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-clean-KVstore-on-search-head-cluster-nodes/m-p/461957#M4101</link>
      <description>&lt;P&gt;You need to identify which KVStore collection is taking lot of space and decide if that is required or not . Don't just remove all KVStore collections in your SHC environment unless you understand the impact.&lt;/P&gt;

&lt;P&gt;I would start with Checking the KVStore collection size in DMC and find out which collections are taking more size and go from there. &lt;/P&gt;

&lt;P&gt;If you need to remove one collection individually in SHC, you can use | outputlookup&lt;BR /&gt;&lt;BR /&gt;
to remove it.&lt;/P&gt;

&lt;P&gt;If you decide to backup your kvstore and restore it later you can refer below documentation .&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.1/Admin/BackupKVstore"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.1/Admin/BackupKVstore&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;To delete the KVStore on members you can refer below documentation.&lt;/P&gt;

&lt;P&gt;Refer documentation &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.1/Admin/ResyncKVstore"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.1/Admin/ResyncKVstore&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 21:24:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-clean-KVstore-on-search-head-cluster-nodes/m-p/461957#M4101</guid>
      <dc:creator>badrinath_itrs</dc:creator>
      <dc:date>2020-01-08T21:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean KVstore on search head cluster nodes</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-clean-KVstore-on-search-head-cluster-nodes/m-p/536186#M4885</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/140799"&gt;@Splunk_rocks&lt;/a&gt;&amp;nbsp; Your search isn't completely working as the &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt; command it doesn't extract the values. So the search should look as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest /services/server/introspection/kvstore/collectionstats
| mvexpand data
| spath input=data
| rex field=ns "^(?&amp;lt;App&amp;gt;.+)\.(?&amp;lt;Collection&amp;gt;.+)$"
| eval dbsize=round(size/1024/1024, 2)
| eval indexsize=round(totalIndexSize/1024/1024, 2),dbsizegb=round(dbsize/1024, 2)
| stats first(count) AS "Number of Objects" first(nindexes) AS Accelerations first(indexsize) AS "Acceleration Size (MB)" first(dbsize) AS "Collection Size (MB)" first(dbsizegb) as "Collection Size (GB)" by App, Collection&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 10:13:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-clean-KVstore-on-search-head-cluster-nodes/m-p/536186#M4885</guid>
      <dc:creator>diconium</dc:creator>
      <dc:date>2021-01-18T10:13:12Z</dc:date>
    </item>
  </channel>
</rss>

