<?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 append key/value pairs to a kvstore lookup? in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/How-to-append-key-value-pairs-to-a-kvstore-lookup/m-p/616331#M9036</link>
    <description>&lt;P&gt;Great questions and allow me to clarify:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I have this data in a spreadsheet that I simply refer back to&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;I want to append to the kvstore lookup as new rows as the data I have in my spreadsheet&amp;nbsp; doesn't exist in the kvstore&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;For example, I see src IPs that have no zone associated with them because that data is not in the kvstore, but in my spreadsheet so I'd like to append that data so it's in the kvstore/lookup&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thx&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Oct 2022 14:46:57 GMT</pubDate>
    <dc:creator>jwalzerpitt</dc:creator>
    <dc:date>2022-10-07T14:46:57Z</dc:date>
    <item>
      <title>How to append key/value pairs to a kvstore lookup?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-append-key-value-pairs-to-a-kvstore-lookup/m-p/616317#M9034</link>
      <description>&lt;P&gt;I have a search that leverages a kvstore lookup that takes the src IP and then checks the lookup to see what core, content, and zone the IP is associated with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| lookup zone_lookup cidr_range as src
| fillnull value=NULL
| search context!="" core!="" zone!=""
| eval core=coalesce(core,"null") 
| eval context=coalesce(context,"null") 
| eval zone=coalesce(zone,"null")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, we do not have a ROA for this info so we have populated the kvstore lookup from various sources as best we can, but sometimes we'll see src IPs with no zone listed. I do have a table I keep that allows me to fill in those blanks and it's a simple table as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;cidr_range	zone
x.x.x.x/16	zone1
y.y.y.y/24	zone2
z.z.z.z/24	zone3&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to create a search that appends my lookup with this data - how would I write that search?&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 14:28:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-append-key-value-pairs-to-a-kvstore-lookup/m-p/616317#M9034</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2022-10-07T14:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to append key/value pairs to a kvstore lookup?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-append-key-value-pairs-to-a-kvstore-lookup/m-p/616327#M9035</link>
      <description>&lt;P&gt;Few questions:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I do have a table I keep that allows me to fill.....&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;By table do you mean index or lookup?&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I'd like to create a search that appends my lookup with this data&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;By append, did you mean 1. you want this data to enrich the current search, or 2. you want to append to the kvstore lookup as new rows, or 3. you want to update the existing kvstore null records?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 14:38:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-append-key-value-pairs-to-a-kvstore-lookup/m-p/616327#M9035</guid>
      <dc:creator>johnhuang</dc:creator>
      <dc:date>2022-10-07T14:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to append key/value pairs to a kvstore lookup?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-append-key-value-pairs-to-a-kvstore-lookup/m-p/616331#M9036</link>
      <description>&lt;P&gt;Great questions and allow me to clarify:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I have this data in a spreadsheet that I simply refer back to&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;I want to append to the kvstore lookup as new rows as the data I have in my spreadsheet&amp;nbsp; doesn't exist in the kvstore&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;For example, I see src IPs that have no zone associated with them because that data is not in the kvstore, but in my spreadsheet so I'd like to append that data so it's in the kvstore/lookup&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thx&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 14:46:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-append-key-value-pairs-to-a-kvstore-lookup/m-p/616331#M9036</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2022-10-07T14:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to append key/value pairs to a kvstore lookup?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-append-key-value-pairs-to-a-kvstore-lookup/m-p/616337#M9037</link>
      <description>&lt;P&gt;Once you upload your spreadsheet as a lookup csv,&amp;nbsp; you can access it in a search. Here's how you can write the search to update the kvstore.&lt;/P&gt;&lt;P&gt;Assuming that the fieldnames are cidr_range and zone:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup spreadsheet_data.csv
| lookup zone_lookup cidr_range OUTPUT zone AS zone2
| search NOT zone2=*
| table cidr_range zone&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Once you've validated the results, you can update the kvstore by adding the following line to the end of the search.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| outputlookup zone_lookup append=true&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 15:23:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-append-key-value-pairs-to-a-kvstore-lookup/m-p/616337#M9037</guid>
      <dc:creator>johnhuang</dc:creator>
      <dc:date>2022-10-07T15:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to append key/value pairs to a kvstore lookup?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-append-key-value-pairs-to-a-kvstore-lookup/m-p/616648#M9045</link>
      <description>&lt;P&gt;Thx for the solution!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 10:51:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-append-key-value-pairs-to-a-kvstore-lookup/m-p/616648#M9045</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2022-10-11T10:51:40Z</dc:date>
    </item>
  </channel>
</rss>

