<?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 KV Store Update Multiple Records in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/KV-Store-Update-Multiple-Records/m-p/489317#M4380</link>
    <description>&lt;P&gt;Quick question about KV store - wondering what the best way to update multiple records at once via search may be?&lt;/P&gt;

&lt;P&gt;Example - let's say I have the most recent logon for users for the past week:&lt;/P&gt;

&lt;P&gt;user1 - last_logon_time&lt;BR /&gt;
user2 - last_logon_time&lt;BR /&gt;
etc....&lt;/P&gt;

&lt;P&gt;I would like to query last_logon_time for all users for the past day, then update the KV store with the most recent info. The goal would be to set this up as a schedule search running daily to keep the KV store updated.&lt;/P&gt;

&lt;P&gt;Any thoughts?&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 05:15:39 GMT</pubDate>
    <dc:creator>kdroddy</dc:creator>
    <dc:date>2020-09-30T05:15:39Z</dc:date>
    <item>
      <title>KV Store Update Multiple Records</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/KV-Store-Update-Multiple-Records/m-p/489317#M4380</link>
      <description>&lt;P&gt;Quick question about KV store - wondering what the best way to update multiple records at once via search may be?&lt;/P&gt;

&lt;P&gt;Example - let's say I have the most recent logon for users for the past week:&lt;/P&gt;

&lt;P&gt;user1 - last_logon_time&lt;BR /&gt;
user2 - last_logon_time&lt;BR /&gt;
etc....&lt;/P&gt;

&lt;P&gt;I would like to query last_logon_time for all users for the past day, then update the KV store with the most recent info. The goal would be to set this up as a schedule search running daily to keep the KV store updated.&lt;/P&gt;

&lt;P&gt;Any thoughts?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:15:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/KV-Store-Update-Multiple-Records/m-p/489317#M4380</guid>
      <dc:creator>kdroddy</dc:creator>
      <dc:date>2020-09-30T05:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: KV Store Update Multiple Records</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/KV-Store-Update-Multiple-Records/m-p/489318#M4381</link>
      <description>&lt;P&gt;@kdroddy &lt;/P&gt;

&lt;P&gt;Can you please share your existing sample search/ code for updating KVStore and the sample KVstore fields?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 05:18:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/KV-Store-Update-Multiple-Records/m-p/489318#M4381</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2020-04-30T05:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: KV Store Update Multiple Records</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/KV-Store-Update-Multiple-Records/m-p/517829#M4722</link>
      <description>&lt;P&gt;If I understood the question correctly, it seems very similar to updating a KV Store as described in&amp;nbsp;&lt;A href="https://dev.splunk.com/enterprise/docs/developapps/manageknowledge/kvstore/uselookupswithkvstore/" target="_blank" rel="noopener"&gt;https://dev.splunk.com/enterprise/docs/developapps/manageknowledge/kvstore/uselookupswithkvstore/&lt;/A&gt;, but with multiple entries at once. So, instead of:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup csvcoll_lookup | search _key=544948df3ec32d7a4c1d9755 | eval CustName="Marge Simpson" | eval CustCity="Springfield" | outputlookup csvcoll_lookup append=True&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try something like:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup csvcoll_lookup | where _key IN("544948df3ec32d7a4c1d9755","544948df3ec32d7a4c1d9756","544948df3ec32d7a4c1d9757") | eval CustName="Marge Simpson" | eval CustCity="Springfield" | outputlookup csvcoll_lookup append=True&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The critical difference is "&lt;STRONG&gt;| where _key IN&lt;/STRONG&gt;" to list the keys you want to manipulate instead of searching for a single one.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: sorry, I replied to the reply instead of the OP. Removed original and posted correctly.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 21:26:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/KV-Store-Update-Multiple-Records/m-p/517829#M4722</guid>
      <dc:creator>sciencenfaith</dc:creator>
      <dc:date>2020-09-03T21:26:16Z</dc:date>
    </item>
  </channel>
</rss>

