<?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 How to join extracted, multi-value SourceTypeA:field_a with extracted SourceType:field_b? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-extracted-multi-value-SourceTypeA-field-a-with/m-p/105368#M27328</link>
    <description>&lt;P&gt;I want to compute a join of an extracted, multi-value SourceTypeA:field_a string variable with an extracted SourceTypeB:field_b string variable.&lt;/P&gt;

&lt;P&gt;I've received a partial answer on how to do a "detour join" in Splunk via Intersect and Stats:&lt;/P&gt;

&lt;P&gt;(sourcetype="SourceTypeA" ...) OR (sourcetype="SourceTypeB" ...) &lt;/P&gt;

&lt;P&gt;| eval c = if (sourcetype=="SourceTypeA", SourceTypeA:field_a, SourceTypeB:field_b)&lt;/P&gt;

&lt;P&gt;| stats values (x) values (y) values(z) by c&lt;/P&gt;

&lt;P&gt;I'm guessing the searches (for the extracted, multi-value field_a and extracted field_b) go in the sourcetype clauses above. &lt;/P&gt;

&lt;P&gt;I want to output the values where SourceTypeA:field_a = SourceTypeB:field_b.&lt;/P&gt;

&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 11:36:15 GMT</pubDate>
    <dc:creator>DrColombes</dc:creator>
    <dc:date>2020-09-28T11:36:15Z</dc:date>
    <item>
      <title>How to join extracted, multi-value SourceTypeA:field_a with extracted SourceType:field_b?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-extracted-multi-value-SourceTypeA-field-a-with/m-p/105368#M27328</link>
      <description>&lt;P&gt;I want to compute a join of an extracted, multi-value SourceTypeA:field_a string variable with an extracted SourceTypeB:field_b string variable.&lt;/P&gt;

&lt;P&gt;I've received a partial answer on how to do a "detour join" in Splunk via Intersect and Stats:&lt;/P&gt;

&lt;P&gt;(sourcetype="SourceTypeA" ...) OR (sourcetype="SourceTypeB" ...) &lt;/P&gt;

&lt;P&gt;| eval c = if (sourcetype=="SourceTypeA", SourceTypeA:field_a, SourceTypeB:field_b)&lt;/P&gt;

&lt;P&gt;| stats values (x) values (y) values(z) by c&lt;/P&gt;

&lt;P&gt;I'm guessing the searches (for the extracted, multi-value field_a and extracted field_b) go in the sourcetype clauses above. &lt;/P&gt;

&lt;P&gt;I want to output the values where SourceTypeA:field_a = SourceTypeB:field_b.&lt;/P&gt;

&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:36:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-extracted-multi-value-SourceTypeA-field-a-with/m-p/105368#M27328</guid>
      <dc:creator>DrColombes</dc:creator>
      <dc:date>2020-09-28T11:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to join extracted, multi-value SourceTypeA:field_a with extracted SourceType:field_b?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-extracted-multi-value-SourceTypeA-field-a-with/m-p/105369#M27329</link>
      <description>&lt;P&gt;Which field do you want to display from SourceTypeA and SourceTypeB? The recipe is the same regardless of whether field_a and field_b are multivalued.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:36:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-extracted-multi-value-SourceTypeA-field-a-with/m-p/105369#M27329</guid>
      <dc:creator>Stephen_Sorkin</dc:creator>
      <dc:date>2020-09-28T11:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to join extracted, multi-value SourceTypeA:field_a with extracted SourceType:field_b?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-extracted-multi-value-SourceTypeA-field-a-with/m-p/105370#M27330</link>
      <description>&lt;P&gt;You have the correct solution, even for &lt;CODE&gt;multi-value&lt;/CODE&gt; fields, except for the whitespaces between &lt;CODE&gt;values&lt;/CODE&gt; and &lt;CODE&gt;(&lt;/CODE&gt;; this should work fine:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(sourcetype="SourceTypeA" ...) OR (sourcetype="SourceTypeB" ...) | eval joiner = if (sourcetype=="SourceTypeA", SourceTypeA:field_a, SourceTypeB:field_b) | stats values(*) AS * by joiner
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 04 Jul 2015 21:14:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-extracted-multi-value-SourceTypeA-field-a-with/m-p/105370#M27330</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-04T21:14:47Z</dc:date>
    </item>
  </channel>
</rss>

