<?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: lookup has matching multivalue field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-does-lookup-have-matching-multivalue-field/m-p/617597#M214630</link>
    <description>&lt;P&gt;You can either 1. migrate your csv lookup into a kvstore which supports multivalues or 2. expand the IP values into its own record and save it to a new lookup.&lt;/P&gt;&lt;P&gt;For 2:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup assest.csv
| makemv delim="|" ip
| mvexpand ip
| outputlookup assets_expanded.csv&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Oct 2022 21:03:14 GMT</pubDate>
    <dc:creator>johnhuang</dc:creator>
    <dc:date>2022-10-18T21:03:14Z</dc:date>
    <item>
      <title>Why does lookup have matching multivalue field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-lookup-have-matching-multivalue-field/m-p/617594#M214627</link>
      <description>&lt;P&gt;I am trying to add fields from a lookup table. However, the matching field is a multivalue field. I need to expand the matching field but do not know how to group the lookup command with a multivalue command&lt;/P&gt;
&lt;P&gt;lookup file assest.csv:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ip, host&lt;/P&gt;
&lt;P&gt;10.10.1.1|10.100.1.1|10.10.200.1, srv1&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;10.10.1.2|10.100.1.2|10.10.200.2, srv2&lt;BR /&gt;&lt;BR /&gt;original search that returns an IP value | [lookup assets.csv ip OUTPUT host |makemv delim="|" ip]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;does not work&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 22:10:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-lookup-have-matching-multivalue-field/m-p/617594#M214627</guid>
      <dc:creator>adent</dc:creator>
      <dc:date>2022-10-18T22:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: lookup has matching multivalue field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-lookup-have-matching-multivalue-field/m-p/617596#M214629</link>
      <description>&lt;P&gt;I am not sure I understand what you are trying to do - if you have a multi-value field in your events and you want to look up these values, you could expand the multi-value field first&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| mvexpand ip
| lookup assets.csv ip OUTPUT host&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 18 Oct 2022 21:01:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-lookup-have-matching-multivalue-field/m-p/617596#M214629</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-10-18T21:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: lookup has matching multivalue field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-lookup-have-matching-multivalue-field/m-p/617597#M214630</link>
      <description>&lt;P&gt;You can either 1. migrate your csv lookup into a kvstore which supports multivalues or 2. expand the IP values into its own record and save it to a new lookup.&lt;/P&gt;&lt;P&gt;For 2:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup assest.csv
| makemv delim="|" ip
| mvexpand ip
| outputlookup assets_expanded.csv&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 21:03:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-lookup-have-matching-multivalue-field/m-p/617597#M214630</guid>
      <dc:creator>johnhuang</dc:creator>
      <dc:date>2022-10-18T21:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: lookup has matching multivalue field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-lookup-have-matching-multivalue-field/m-p/617619#M214645</link>
      <description>&lt;P&gt;The MV IP is in the lookup table.&amp;nbsp; The original search returns a single IP value. The solution above about creating a new lookup table sounds easiest.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 00:13:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-lookup-have-matching-multivalue-field/m-p/617619#M214645</guid>
      <dc:creator>adent</dc:creator>
      <dc:date>2022-10-19T00:13:16Z</dc:date>
    </item>
  </channel>
</rss>

