<?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 join two searches on a common field where the value of the left search matches all values of the right search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches-on-a-common-field-where-the-value-of/m-p/118227#M31556</link>
    <description>&lt;P&gt;Hi @ahuseid,  I am in the same situation, can you share your answer which worked for you?&lt;/P&gt;</description>
    <pubDate>Thu, 15 Nov 2018 19:14:14 GMT</pubDate>
    <dc:creator>sendilprakash</dc:creator>
    <dc:date>2018-11-15T19:14:14Z</dc:date>
    <item>
      <title>How to join two searches on a common field where the value of the left search matches all values of the right search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches-on-a-common-field-where-the-value-of/m-p/118222#M31551</link>
      <description>&lt;P&gt;I need to join two searches on a common field in which I want a value of the left search  matches all the values of the right search. Example&lt;BR /&gt;
Search A&lt;BR /&gt;&lt;BR /&gt;
X 1&lt;BR /&gt;&lt;BR /&gt;
Y 2                     &lt;/P&gt;

&lt;P&gt;Search B&lt;BR /&gt;
X  8&lt;BR /&gt;
Y  9&lt;BR /&gt;
X  11&lt;BR /&gt;
Y  14&lt;BR /&gt;
Z  7&lt;/P&gt;

&lt;P&gt;When Joined&lt;BR /&gt;
X   8&lt;BR /&gt;
X   11&lt;BR /&gt;
Y   9&lt;BR /&gt;
Y   14&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2015 17:13:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches-on-a-common-field-where-the-value-of/m-p/118222#M31551</guid>
      <dc:creator>ahuseid</dc:creator>
      <dc:date>2015-05-20T17:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two searches on a common field where the value of the left search matches all values of the right search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches-on-a-common-field-where-the-value-of/m-p/118223#M31552</link>
      <description>&lt;P&gt;Perhaps something like this will work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;Search A&amp;gt; | fields field1 field2 | join field1 [search &amp;lt;Search B&amp;gt; | fields field1 field3] | table field1 field3
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 May 2015 17:20:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches-on-a-common-field-where-the-value-of/m-p/118223#M31552</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-05-20T17:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two searches on a common field where the value of the left search matches all values of the right search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches-on-a-common-field-where-the-value-of/m-p/118224#M31553</link>
      <description>&lt;P&gt;Looking at your example, you are not joining two searches, you are filtering one search with common fields from other search. If that is the case, then you can try as below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=SearchA [index=SearchB|fields CommonField as search|format]|table SearchAFields
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 May 2015 18:08:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches-on-a-common-field-where-the-value-of/m-p/118224#M31553</guid>
      <dc:creator>sanjay_shrestha</dc:creator>
      <dc:date>2015-05-20T18:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two searches on a common field where the value of the left search matches all values of the right search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches-on-a-common-field-where-the-value-of/m-p/118225#M31554</link>
      <description>&lt;P&gt;I think the example I took was not clear enough. Here is a better example:&lt;BR /&gt;
Search A&lt;BR /&gt;&lt;BR /&gt;
X   !   #&lt;BR /&gt;&lt;BR /&gt;
Y   %   *                   &lt;/P&gt;

&lt;P&gt;Search B&lt;BR /&gt;
X    8&lt;BR /&gt;
Y    9&lt;BR /&gt;
X    11&lt;BR /&gt;
Y    14&lt;BR /&gt;
Z    7&lt;/P&gt;

&lt;P&gt;When Joined&lt;BR /&gt;
X   !   #   8&lt;BR /&gt;
X   %   *   11&lt;BR /&gt;
Y   !   #   9&lt;BR /&gt;
Y   %   *   14&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2015 18:57:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches-on-a-common-field-where-the-value-of/m-p/118225#M31554</guid>
      <dc:creator>ahuseid</dc:creator>
      <dc:date>2015-05-20T18:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two searches on a common field where the value of the left search matches all values of the right search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches-on-a-common-field-where-the-value-of/m-p/118226#M31555</link>
      <description>&lt;P&gt;Folks,&lt;BR /&gt;
 some of the characters in my second example  didn't come out right. Here is a clearer one:&lt;/P&gt;

&lt;P&gt;Search A&lt;BR /&gt;&lt;BR /&gt;
X   chair   orange&lt;BR /&gt;
Y   table   lemon&lt;BR /&gt;
Z   desk    banana&lt;/P&gt;

&lt;P&gt;Search B&lt;BR /&gt;&lt;BR /&gt;
X   1&lt;BR /&gt;
X   2&lt;BR /&gt;
Y   3&lt;BR /&gt;
Y   4&lt;BR /&gt;
P   5&lt;/P&gt;

&lt;P&gt;Joined Search (As I want it to be)&lt;BR /&gt;&lt;BR /&gt;
X   chair   orange  1&lt;BR /&gt;
X   chair   orange  2&lt;BR /&gt;
Y   table   lemon   3&lt;BR /&gt;
Y   table   lemon   4&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2015 20:57:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches-on-a-common-field-where-the-value-of/m-p/118226#M31555</guid>
      <dc:creator>ahuseid</dc:creator>
      <dc:date>2015-05-20T20:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two searches on a common field where the value of the left search matches all values of the right search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches-on-a-common-field-where-the-value-of/m-p/118227#M31556</link>
      <description>&lt;P&gt;Hi @ahuseid,  I am in the same situation, can you share your answer which worked for you?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 19:14:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches-on-a-common-field-where-the-value-of/m-p/118227#M31556</guid>
      <dc:creator>sendilprakash</dc:creator>
      <dc:date>2018-11-15T19:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two searches on a common field where the value of the left search matches all values of the right search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches-on-a-common-field-where-the-value-of/m-p/118228#M31557</link>
      <description>&lt;P&gt;I just don't see what you could possibly use to match these. This does not seem to be joining.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 11:32:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches-on-a-common-field-where-the-value-of/m-p/118228#M31557</guid>
      <dc:creator>simonzfor</dc:creator>
      <dc:date>2019-11-01T11:32:23Z</dc:date>
    </item>
  </channel>
</rss>

