<?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: Delete specific entries from KV Store in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Delete-specific-entries-from-KV-Store/m-p/543139#M153857</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231485"&gt;@srinivasgowda&lt;/a&gt;,&lt;BR /&gt;You can use rest API to delete records in kvstore collection. Replace APP_NAME and KVSTORE_COLLECTION_NAME and run the below command. You can also use tools like the postman to achieve this.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -k -u admin:changeme https://SPLUNK_SERVER_IP:8089/servicesNS/nobody/APP_NAME/storage/collections/data/KVSTORE_COLLECTION_NAME -X DELETE -H "Content-Type: application/json" -d '{ "query":{"recovery_flag":0}}'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this reply helps you, an upvote/like would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Mar 2021 06:04:51 GMT</pubDate>
    <dc:creator>manjunathmeti</dc:creator>
    <dc:date>2021-03-10T06:04:51Z</dc:date>
    <item>
      <title>Delete specific entries from KV Store</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Delete-specific-entries-from-KV-Store/m-p/543138#M153856</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on getting specific entries deleted once the search runs and holds true.&lt;/P&gt;&lt;P&gt;Below is the detailed outline of what I am trying to achieve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The recovery_flag in the kv store that contains the data of source is set to 1 and 0 based on the requirement. However, I am trying to delete the entries with recovery_flag = 0 on the next run of the&amp;nbsp; search, this way the unwanted entries are removed. Can you guide me through this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 05:49:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Delete-specific-entries-from-KV-Store/m-p/543138#M153856</guid>
      <dc:creator>srinivasgowda</dc:creator>
      <dc:date>2021-03-10T05:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Delete specific entries from KV Store</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Delete-specific-entries-from-KV-Store/m-p/543139#M153857</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231485"&gt;@srinivasgowda&lt;/a&gt;,&lt;BR /&gt;You can use rest API to delete records in kvstore collection. Replace APP_NAME and KVSTORE_COLLECTION_NAME and run the below command. You can also use tools like the postman to achieve this.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -k -u admin:changeme https://SPLUNK_SERVER_IP:8089/servicesNS/nobody/APP_NAME/storage/collections/data/KVSTORE_COLLECTION_NAME -X DELETE -H "Content-Type: application/json" -d '{ "query":{"recovery_flag":0}}'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this reply helps you, an upvote/like would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 06:04:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Delete-specific-entries-from-KV-Store/m-p/543139#M153857</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2021-03-10T06:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Delete specific entries from KV Store</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Delete-specific-entries-from-KV-Store/m-p/543148#M153860</link>
      <description>Hi&lt;BR /&gt;Have you try this: &lt;A href="https://splunkbase.splunk.com/app/5328/" target="_blank"&gt;https://splunkbase.splunk.com/app/5328/&lt;/A&gt; ?&lt;BR /&gt;I'm using it for kvstore backups on SHC / SH environments, but haven't try it with managing individual keys.&lt;BR /&gt;r. Ismo</description>
      <pubDate>Wed, 10 Mar 2021 07:00:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Delete-specific-entries-from-KV-Store/m-p/543148#M153860</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2021-03-10T07:00:54Z</dc:date>
    </item>
  </channel>
</rss>

