<?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 delete data from a KVStore based on some criteria in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/How-to-delete-data-from-a-KVStore-based-on-some-criteria/m-p/369582#M6027</link>
    <description>&lt;P&gt;I was thinking the way you described, but it doesn't work.  &lt;/P&gt;</description>
    <pubDate>Tue, 01 May 2018 19:36:50 GMT</pubDate>
    <dc:creator>splunkrocks2014</dc:creator>
    <dc:date>2018-05-01T19:36:50Z</dc:date>
    <item>
      <title>How to delete data from a KVStore based on some criteria</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-delete-data-from-a-KVStore-based-on-some-criteria/m-p/369580#M6025</link>
      <description>&lt;P&gt;How can I delete data from a KV store based on some criteria, for instance, to delete the aged data based on a timestamp field?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 18:46:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-delete-data-from-a-KVStore-based-on-some-criteria/m-p/369580#M6025</guid>
      <dc:creator>splunkrocks2014</dc:creator>
      <dc:date>2018-04-27T18:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data from a KVStore based on some criteria</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-delete-data-from-a-KVStore-based-on-some-criteria/m-p/369581#M6026</link>
      <description>&lt;P&gt;@splunkrocks2014, perform &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Inputlookup"&gt;inputlookup&lt;/A&gt; on KV Store, then apply &lt;CODE&gt;search&lt;/CODE&gt; filter to get data only falling in the recent required time. Finally perform &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Outputlookup"&gt;outputlookup&lt;/A&gt; to the same KV Store to keep only required results.&lt;/P&gt;

&lt;P&gt;You can then save the search as Scheduled Report to perform this on a regular basis.&lt;/P&gt;

&lt;P&gt;If you can not figure out the query and need further help from the community members, you can add further details like KV Store name, and name of the fields along with sample data. Also what is the criteria for Date Range to drop events from KV Store? Is you timestamp field String Date or Epoch Date? &lt;/P&gt;</description>
      <pubDate>Tue, 01 May 2018 09:02:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-delete-data-from-a-KVStore-based-on-some-criteria/m-p/369581#M6026</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-05-01T09:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data from a KVStore based on some criteria</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-delete-data-from-a-KVStore-based-on-some-criteria/m-p/369582#M6027</link>
      <description>&lt;P&gt;I was thinking the way you described, but it doesn't work.  &lt;/P&gt;</description>
      <pubDate>Tue, 01 May 2018 19:36:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-delete-data-from-a-KVStore-based-on-some-criteria/m-p/369582#M6027</guid>
      <dc:creator>splunkrocks2014</dc:creator>
      <dc:date>2018-05-01T19:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data from a KVStore based on some criteria</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-delete-data-from-a-KVStore-based-on-some-criteria/m-p/369583#M6028</link>
      <description>&lt;P&gt;Inputlookup and search should work. May I know if the issue is with outputlookup? Are you seeing any error in Job Inspector/Splunk _internal logs?&lt;/P&gt;</description>
      <pubDate>Tue, 01 May 2018 20:37:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-delete-data-from-a-KVStore-based-on-some-criteria/m-p/369583#M6028</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-05-01T20:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data from a KVStore based on some criteria</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-delete-data-from-a-KVStore-based-on-some-criteria/m-p/369584#M6029</link>
      <description>&lt;P&gt;You can also delete data from KVstore using REST API&lt;/P&gt;

&lt;P&gt;Please look at this doc.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://dev.splunk.com/view/webframework-developapps/SP-CAAAEZG"&gt;http://dev.splunk.com/view/webframework-developapps/SP-CAAAEZG&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Delete the record with the key ID " 5410be5441ba15298e4624d1":&lt;/P&gt;

&lt;P&gt;curl -k -u admin:changeme -X DELETE \&lt;BR /&gt;
    &lt;A href="https://localhost:8089/servicesNS/nobody/kvstoretest/storage/collections/data/kvstorecoll/5410be5441ba15298e4624d1"&gt;https://localhost:8089/servicesNS/nobody/kvstoretest/storage/collections/data/kvstorecoll/5410be5441ba15298e4624d1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;if you don't have permissions to the box - then use the Rest command in UI&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 02:01:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-delete-data-from-a-KVStore-based-on-some-criteria/m-p/369584#M6029</guid>
      <dc:creator>PowerPacked</dc:creator>
      <dc:date>2018-05-02T02:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data from a KVStore based on some criteria</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-delete-data-from-a-KVStore-based-on-some-criteria/m-p/369585#M6030</link>
      <description>&lt;P&gt;@PowerPacked If you're still alive on this forum i'd really appreciate if you could elaborate on &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;if you don't have permissions to the box - then use the Rest command in UI&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I'm trying to figure out exactly how to delete a specific key from KV Store via UI.  If you have any sample code or links or anything that could push me in the righ direction then please share &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 14:24:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-delete-data-from-a-KVStore-based-on-some-criteria/m-p/369585#M6030</guid>
      <dc:creator>andrewtrobec</dc:creator>
      <dc:date>2020-03-19T14:24:57Z</dc:date>
    </item>
  </channel>
</rss>

