<?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 combine two searches so that I can get only those rows from Search2 whose Col-1 value is present in Search1 Col-1? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-two-searches-so-that-I-can-get-only-those-rows/m-p/241962#M71989</link>
    <description>&lt;P&gt;I have tried that but it doesn't work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 10 May 2016 13:56:58 GMT</pubDate>
    <dc:creator>anil_kr01</dc:creator>
    <dc:date>2016-05-10T13:56:58Z</dc:date>
    <item>
      <title>How to combine two searches so that I can get only those rows from Search2 whose Col-1 value is present in Search1 Col-1?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-two-searches-so-that-I-can-get-only-those-rows/m-p/241960#M71987</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I have a serach which will gives the Top 4 records.&lt;/P&gt;

&lt;P&gt;Example&lt;/P&gt;

&lt;P&gt;Search1 result looks like&lt;/P&gt;

&lt;P&gt;Col-1&lt;/P&gt;

&lt;P&gt;ABC&lt;BR /&gt;
DEF&lt;BR /&gt;
GHI&lt;BR /&gt;
JKL&lt;/P&gt;

&lt;P&gt;I have one another search which gives the result like:&lt;/P&gt;

&lt;P&gt;Search2 result looks like:&lt;/P&gt;

&lt;P&gt;Col-1       Col-2&lt;/P&gt;

&lt;P&gt;ABC         123&lt;BR /&gt;
DEF         456&lt;BR /&gt;
GHI         789&lt;BR /&gt;
ABC         101&lt;BR /&gt;
JKL         112&lt;BR /&gt;
MNO         131&lt;BR /&gt;
PQR         415&lt;BR /&gt;
STU         161&lt;BR /&gt;
VWX         718&lt;/P&gt;

&lt;P&gt;How can I get the below result using the 2 searches above (Only those rows from Search2 whose Col-1 value is present in Search1 Col-1)?&lt;/P&gt;

&lt;P&gt;Expected Final Result Table&lt;/P&gt;

&lt;P&gt;Col-1       Col-2&lt;/P&gt;

&lt;P&gt;ABC         123&lt;BR /&gt;
DEF         456&lt;BR /&gt;
GHI         789&lt;BR /&gt;
ABC         101&lt;BR /&gt;
JKL         112&lt;/P&gt;

&lt;P&gt;Please guide/help me.&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 09:13:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-two-searches-so-that-I-can-get-only-those-rows/m-p/241960#M71987</guid>
      <dc:creator>anil_kr01</dc:creator>
      <dc:date>2016-05-10T09:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine two searches so that I can get only those rows from Search2 whose Col-1 value is present in Search1 Col-1?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-two-searches-so-that-I-can-get-only-those-rows/m-p/241961#M71988</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Have you tried :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Query 2 [ Query 1 ]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 May 2016 09:52:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-two-searches-so-that-I-can-get-only-those-rows/m-p/241961#M71988</guid>
      <dc:creator>ctaf</dc:creator>
      <dc:date>2016-05-10T09:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine two searches so that I can get only those rows from Search2 whose Col-1 value is present in Search1 Col-1?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-two-searches-so-that-I-can-get-only-those-rows/m-p/241962#M71989</link>
      <description>&lt;P&gt;I have tried that but it doesn't work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 13:56:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-two-searches-so-that-I-can-get-only-those-rows/m-p/241962#M71989</guid>
      <dc:creator>anil_kr01</dc:creator>
      <dc:date>2016-05-10T13:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine two searches so that I can get only those rows from Search2 whose Col-1 value is present in Search1 Col-1?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-two-searches-so-that-I-can-get-only-those-rows/m-p/241963#M71990</link>
      <description>&lt;P&gt;Is the field name of Col-1 is the same in both queries?&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 14:08:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-two-searches-so-that-I-can-get-only-those-rows/m-p/241963#M71990</guid>
      <dc:creator>ctaf</dc:creator>
      <dc:date>2016-05-10T14:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine two searches so that I can get only those rows from Search2 whose Col-1 value is present in Search1 Col-1?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-two-searches-so-that-I-can-get-only-those-rows/m-p/241964#M71991</link>
      <description>&lt;P&gt;Yes! it is same in both the query.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 04:48:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-two-searches-so-that-I-can-get-only-those-rows/m-p/241964#M71991</guid>
      <dc:creator>anil_kr01</dc:creator>
      <dc:date>2016-05-11T04:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine two searches so that I can get only those rows from Search2 whose Col-1 value is present in Search1 Col-1?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-two-searches-so-that-I-can-get-only-those-rows/m-p/241965#M71992</link>
      <description>&lt;P&gt;I downvoted this post because the suggested way is not working....&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 11:07:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-two-searches-so-that-I-can-get-only-those-rows/m-p/241965#M71992</guid>
      <dc:creator>anil_kr01</dc:creator>
      <dc:date>2016-05-11T11:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine two searches so that I can get only those rows from Search2 whose Col-1 value is present in Search1 Col-1?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-two-searches-so-that-I-can-get-only-those-rows/m-p/241966#M71993</link>
      <description>&lt;P&gt;Try this...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=A OR source=B | eventstats dc(source) as x by col1 | where x=1 AND source=B | table col1 col2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 May 2016 12:00:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-two-searches-so-that-I-can-get-only-those-rows/m-p/241966#M71993</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-05-11T12:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine two searches so that I can get only those rows from Search2 whose Col-1 value is present in Search1 Col-1?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-two-searches-so-that-I-can-get-only-those-rows/m-p/241967#M71994</link>
      <description>&lt;P&gt;You can try this:&lt;/P&gt;

&lt;P&gt;search2 | table Col1, col2| join Col1 [search search1| table Col1]&lt;/P&gt;

&lt;P&gt;Please let me know if this doesn't work and mark as answered if it works&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 12:03:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-two-searches-so-that-I-can-get-only-those-rows/m-p/241967#M71994</guid>
      <dc:creator>bainskaransingh</dc:creator>
      <dc:date>2016-05-11T12:03:41Z</dc:date>
    </item>
  </channel>
</rss>

