<?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 lookup against a csv file and join data with a multi-value field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-lookup-against-a-csv-file-and-join-data-with-a-multi/m-p/173509#M49769</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.... | join max=0 userid [|inputlookup testgroup.csv ] | stats values(group) as group by userid
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 07 Aug 2014 03:48:00 GMT</pubDate>
    <dc:creator>strive</dc:creator>
    <dc:date>2014-08-07T03:48:00Z</dc:date>
    <item>
      <title>How to lookup against a csv file and join data with a multi-value field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-lookup-against-a-csv-file-and-join-data-with-a-multi/m-p/173508#M49768</link>
      <description>&lt;P&gt;I have a lookup file that is basically the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;userid,group
1,g1
1,g2
1,g3
2,g3
2,g1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to do a lookup against this table and return a multivalue field for each event.&lt;/P&gt;

&lt;P&gt;i.e. post lookup, if I do table userid, group, I should see:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;userid   group
------------------------
1        g1
         g2
         g3
------------------------
2        g1
         g3
------------------------
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Basically the lookup should return all matches as a multivalue field.  Right now if I'm using&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.... | join max=0 userid [inputlookup testgroup.csv ] | table userId group...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But what happens is that each event just gets a single value (g1, g2  or g3) returned for group instead of a multivalued field that contains all matches.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2014 21:35:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-lookup-against-a-csv-file-and-join-data-with-a-multi/m-p/173508#M49768</guid>
      <dc:creator>axdahl</dc:creator>
      <dc:date>2014-08-06T21:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to lookup against a csv file and join data with a multi-value field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-lookup-against-a-csv-file-and-join-data-with-a-multi/m-p/173509#M49769</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.... | join max=0 userid [|inputlookup testgroup.csv ] | stats values(group) as group by userid
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Aug 2014 03:48:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-lookup-against-a-csv-file-and-join-data-with-a-multi/m-p/173509#M49769</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-08-07T03:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to lookup against a csv file and join data with a multi-value field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-lookup-against-a-csv-file-and-join-data-with-a-multi/m-p/173510#M49770</link>
      <description>&lt;P&gt;that was it!, thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2014 22:47:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-lookup-against-a-csv-file-and-join-data-with-a-multi/m-p/173510#M49770</guid>
      <dc:creator>axdahl</dc:creator>
      <dc:date>2014-08-07T22:47:03Z</dc:date>
    </item>
  </channel>
</rss>

