<?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 join two table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/join-two-table/m-p/96038#M24785</link>
    <description>&lt;P&gt;hi all ,&lt;/P&gt;

&lt;P&gt;after using the below search i got one table which has the transactional data as&lt;/P&gt;

&lt;P&gt;source="aaa"|transaction TaskName startswith=START endswith=Succeeded|table TaskBP duration&lt;/P&gt;

&lt;P&gt;TaskName    duration&lt;/P&gt;

&lt;P&gt;Task1       1.90&lt;/P&gt;

&lt;P&gt;Task2       2.67&lt;/P&gt;

&lt;P&gt;Task1       7.55&lt;/P&gt;

&lt;P&gt;another table with Taskname and its average duration by using the below search &lt;/P&gt;

&lt;P&gt;source="aaa"|transaction TaskName startswith=START endswith=Succeeded|stats avg(duration) by taskname |table taskname avg(duration)&lt;/P&gt;

&lt;P&gt;i want to join these two searches so that my table will become as&lt;/P&gt;

&lt;P&gt;Taskname    duration   avg(duration)&lt;/P&gt;

&lt;P&gt;Task1         1.90        12.4&lt;/P&gt;

&lt;P&gt;task2         2.67         5.9&lt;/P&gt;

&lt;P&gt;Task1         7.55         12.4&lt;/P&gt;

&lt;P&gt;i think of using the left outer join..plz help in writing the search  &lt;/P&gt;</description>
    <pubDate>Fri, 19 Oct 2012 10:50:48 GMT</pubDate>
    <dc:creator>splunkpoornima</dc:creator>
    <dc:date>2012-10-19T10:50:48Z</dc:date>
    <item>
      <title>join two table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/join-two-table/m-p/96038#M24785</link>
      <description>&lt;P&gt;hi all ,&lt;/P&gt;

&lt;P&gt;after using the below search i got one table which has the transactional data as&lt;/P&gt;

&lt;P&gt;source="aaa"|transaction TaskName startswith=START endswith=Succeeded|table TaskBP duration&lt;/P&gt;

&lt;P&gt;TaskName    duration&lt;/P&gt;

&lt;P&gt;Task1       1.90&lt;/P&gt;

&lt;P&gt;Task2       2.67&lt;/P&gt;

&lt;P&gt;Task1       7.55&lt;/P&gt;

&lt;P&gt;another table with Taskname and its average duration by using the below search &lt;/P&gt;

&lt;P&gt;source="aaa"|transaction TaskName startswith=START endswith=Succeeded|stats avg(duration) by taskname |table taskname avg(duration)&lt;/P&gt;

&lt;P&gt;i want to join these two searches so that my table will become as&lt;/P&gt;

&lt;P&gt;Taskname    duration   avg(duration)&lt;/P&gt;

&lt;P&gt;Task1         1.90        12.4&lt;/P&gt;

&lt;P&gt;task2         2.67         5.9&lt;/P&gt;

&lt;P&gt;Task1         7.55         12.4&lt;/P&gt;

&lt;P&gt;i think of using the left outer join..plz help in writing the search  &lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2012 10:50:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/join-two-table/m-p/96038#M24785</guid>
      <dc:creator>splunkpoornima</dc:creator>
      <dc:date>2012-10-19T10:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: join two table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/join-two-table/m-p/96039#M24786</link>
      <description>&lt;P&gt;How is this different from the other question you had regarding adding an avg(duration) value to your search?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2012 11:24:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/join-two-table/m-p/96039#M24786</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-10-19T11:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: join two table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/join-two-table/m-p/96040#M24787</link>
      <description>&lt;P&gt;use a join on the common field&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;mysearchA | table field1 field2 &lt;BR /&gt;
| JOIN field1 [ mysearchB | table field1 field3] &lt;BR /&gt;
| table field1 field2 field3&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;see &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Join"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Join&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Oct 2012 15:21:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/join-two-table/m-p/96040#M24787</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2012-10-21T15:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: join two table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/join-two-table/m-p/96041#M24788</link>
      <description>&lt;P&gt;hi, &lt;/P&gt;

&lt;P&gt;I have the same problem&lt;/P&gt;

&lt;P&gt;mysearchA | table field1 field2 &lt;BR /&gt;
| JOIN field1 [ mysearchB | table field1 field3] &lt;BR /&gt;
| table field1 field2 field3&lt;/P&gt;

&lt;P&gt;what is the mySearchA,mySearchB stands for ?&lt;BR /&gt;
my data provider(file) is a host named XXX &lt;BR /&gt;
when i am using a host=XXX in both of "mySearchA,B" expression i am getting an error&lt;/P&gt;

&lt;P&gt;help needed&lt;BR /&gt;
Thanks shay&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2013 14:10:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/join-two-table/m-p/96041#M24788</guid>
      <dc:creator>shayhk</dc:creator>
      <dc:date>2013-12-17T14:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: join two table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/join-two-table/m-p/96042#M24789</link>
      <description>&lt;P&gt;try "source=XXX"&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2013 14:35:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/join-two-table/m-p/96042#M24789</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2013-12-17T14:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: join two table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/join-two-table/m-p/96043#M24790</link>
      <description>&lt;P&gt;You want that the searchA and searchB return a single line per field1, otherwise the join between the 2 lists will be wrong. &lt;/P&gt;

&lt;P&gt;An example with a join between a list of users and the logins per server can be :&lt;BR /&gt;
&lt;CODE&gt;index=users username=* email=* &lt;BR /&gt;
| stats values(email) AS email by username&lt;BR /&gt;
| JOIN username &lt;BR /&gt;
[ &lt;BR /&gt;
  search index=servers login username=* &lt;BR /&gt;
  | stats values(host) AS server_login_list earliest(_time) AS recent_login earliest(host) AS   recent_server by username&lt;BR /&gt;
 ] &lt;BR /&gt;
| table username email server_login_list recent_login recent_server&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2013 17:44:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/join-two-table/m-p/96043#M24790</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-12-17T17:44:44Z</dc:date>
    </item>
  </channel>
</rss>

