<?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: left join multivalue in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/left-join-multivalue/m-p/287053#M86893</link>
    <description>&lt;P&gt;Then use mvexpand first, then join, then back to multivalue by using stats values or something similar.&lt;/P&gt;

&lt;P&gt;Or use one of the join alternatives I linked in my previoius answers. It'll be a bit more complicated to implement but it will be faster&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jul 2016 13:03:26 GMT</pubDate>
    <dc:creator>javiergn</dc:creator>
    <dc:date>2016-07-29T13:03:26Z</dc:date>
    <item>
      <title>left join multivalue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/left-join-multivalue/m-p/287049#M86889</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;

&lt;P&gt;i try to use left join to match between two index.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="myfirst_Index"   

|  rex max_match=0 field=multivalued_field "(.*?)(GET|POST)(?(.*?))$"  

|join type=left URL1  [|search index=mysecond_index  |eval URL1=URL |fields URL1 element1]
| table multivalued_field URL1 element1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;when multivalued_field contain only one value the join work fine and i obtain what i need on element1, but when i have multi value no match found.&lt;/P&gt;

&lt;P&gt;how can i do to correct my request ?&lt;/P&gt;

&lt;P&gt;thx&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2016 12:15:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/left-join-multivalue/m-p/287049#M86889</guid>
      <dc:creator>sfatnass</dc:creator>
      <dc:date>2016-07-29T12:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: left join multivalue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/left-join-multivalue/m-p/287050#M86890</link>
      <description>&lt;P&gt;Hi, could you modify your question and include the query between code labels?&lt;BR /&gt;
Otherwise when you post that it'll trim special HTML characters.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2016 12:20:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/left-join-multivalue/m-p/287050#M86890</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-07-29T12:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: left join multivalue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/left-join-multivalue/m-p/287051#M86891</link>
      <description>&lt;P&gt;You could try to expand your multivalued field before the join:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="myfirst_Index"
| rex max_match=0 field=multivalued_field "(.?)(GET|POST)(?(.?))$"
| mvexpand URL1
| join type=left URL1 [|search index=mysecond_index |eval URL1=URL |fields URL1 element1]
| table multivalued_field URL1 element1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Careful when using join though (performance, limits in outputs, etc).&lt;BR /&gt;
See the following answers:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/221304/alternatives-to-join-with-two-matching-event-field.html"&gt;https://answers.splunk.com/answers/221304/alternatives-to-join-with-two-matching-event-field.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/387510/what-are-alternatives-to-using-the-join-command-fo.html"&gt;https://answers.splunk.com/answers/387510/what-are-alternatives-to-using-the-join-command-fo.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/129424/how-to-compare-fields-over-multiple-sourcetypes-without-join-append-or-use-of-subsearches.html"&gt;https://answers.splunk.com/answers/129424/how-to-compare-fields-over-multiple-sourcetypes-without-join-append-or-use-of-subsearches.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
J&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2016 12:22:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/left-join-multivalue/m-p/287051#M86891</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-07-29T12:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: left join multivalue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/left-join-multivalue/m-p/287052#M86892</link>
      <description>&lt;P&gt;your solution not help me really i have to conserve URL1 like multivalue, because i need to get element1 like multivalued field.&lt;BR /&gt;
otherwise if i use lookup and not index for mysecond_index how can i do?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2016 12:41:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/left-join-multivalue/m-p/287052#M86892</guid>
      <dc:creator>sfatnass</dc:creator>
      <dc:date>2016-07-29T12:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: left join multivalue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/left-join-multivalue/m-p/287053#M86893</link>
      <description>&lt;P&gt;Then use mvexpand first, then join, then back to multivalue by using stats values or something similar.&lt;/P&gt;

&lt;P&gt;Or use one of the join alternatives I linked in my previoius answers. It'll be a bit more complicated to implement but it will be faster&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2016 13:03:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/left-join-multivalue/m-p/287053#M86893</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-07-29T13:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: left join multivalue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/left-join-multivalue/m-p/287054#M86894</link>
      <description>&lt;P&gt;the request using stats don't work &lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2016 13:10:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/left-join-multivalue/m-p/287054#M86894</guid>
      <dc:creator>sfatnass</dc:creator>
      <dc:date>2016-07-29T13:10:14Z</dc:date>
    </item>
  </channel>
</rss>

