<?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 search results without using join command? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-search-results-without-using-join-command/m-p/253444#M75832</link>
    <description>&lt;P&gt;That's &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.1/SearchReference/Append"&gt;append&lt;/A&gt; that you want. It just takes one set of results and adds another set of results to it, like pasting new rows at the end of a spreadsheet or something.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search that returns the Field1-4 rows | append [search search that returns the FieldA-C rows ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;There's lot of good examples in the docs I linked above.  I suggest reviewing those closely to learn how it handles certain things.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Dec 2016 12:34:43 GMT</pubDate>
    <dc:creator>Richfez</dc:creator>
    <dc:date>2016-12-02T12:34:43Z</dc:date>
    <item>
      <title>How to join search results without using join command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-search-results-without-using-join-command/m-p/253443#M75831</link>
      <description>&lt;P&gt;I have this situation:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Table1
Id
Field1
Field2
Field3

Table2
Id
FieldA
FieldB
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I need this result:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Id
Field1
Field2
Field3
FieldA
FieldB
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ok... that's easy, right?&lt;BR /&gt;
But I can't use "join" clause and subsearch.&lt;/P&gt;

&lt;P&gt;I've tried transaction and others options, but the result is wrong.&lt;/P&gt;

&lt;P&gt;Can somebody help me? &lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 11:03:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-search-results-without-using-join-command/m-p/253443#M75831</guid>
      <dc:creator>usersplunktest</dc:creator>
      <dc:date>2016-12-02T11:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to join search results without using join command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-search-results-without-using-join-command/m-p/253444#M75832</link>
      <description>&lt;P&gt;That's &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.1/SearchReference/Append"&gt;append&lt;/A&gt; that you want. It just takes one set of results and adds another set of results to it, like pasting new rows at the end of a spreadsheet or something.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search that returns the Field1-4 rows | append [search search that returns the FieldA-C rows ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;There's lot of good examples in the docs I linked above.  I suggest reviewing those closely to learn how it handles certain things.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 12:34:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-search-results-without-using-join-command/m-p/253444#M75832</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2016-12-02T12:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to join search results without using join command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-search-results-without-using-join-command/m-p/253445#M75833</link>
      <description>&lt;P&gt;As I think on this, you may not even need append.  You might be able to get by with just using &lt;CODE&gt;OR&lt;/CODE&gt; between the two things you are searching for.  Like...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=Table1 OR source=Table2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And, if you want it sorted like in your example,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=Table1 OR source=Table2 | sort Id
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Splunk normally puts &lt;CODE&gt;AND&lt;/CODE&gt; between terms, using &lt;CODE&gt;OR&lt;/CODE&gt; just ... well, makes it OR.&lt;/P&gt;

&lt;P&gt;Happy Splunking!&lt;BR /&gt;
-Rich&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 17:37:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-search-results-without-using-join-command/m-p/253445#M75833</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2016-12-02T17:37:55Z</dc:date>
    </item>
  </channel>
</rss>

