<?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 or search fields from two different indexes with a common field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-or-search-fields-from-two-different-indexes-with-a/m-p/503129#M139998</link>
    <description>&lt;P&gt;Thanks for reply.&lt;/P&gt;

&lt;P&gt;Actually, I learned from other post and used this:&lt;BR /&gt;
indexA sourcetype...| rename field1 AS field | table field1, field2&lt;BR /&gt;
| join field&lt;BR /&gt;
[search indexB sourcetype...| rename field4 AS field | table field5, field6]&lt;/P&gt;

&lt;P&gt;It works well.&lt;BR /&gt;
Thanks again.&lt;/P&gt;</description>
    <pubDate>Sat, 19 Oct 2019 02:52:29 GMT</pubDate>
    <dc:creator>vnguyen46</dc:creator>
    <dc:date>2019-10-19T02:52:29Z</dc:date>
    <item>
      <title>How to join or search fields from two different indexes with a common field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-or-search-fields-from-two-different-indexes-with-a/m-p/503127#M139996</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have two indexes basically like this:&lt;BR /&gt;
indexA has field1, field2, field3&lt;BR /&gt;
indexB has field4, field5, field6&lt;BR /&gt;
&lt;STRONG&gt;field1=field4&lt;/STRONG&gt; (both are username)&lt;BR /&gt;
I need a table showing:&lt;BR /&gt;
field1, field2, field5, field6&lt;/P&gt;

&lt;P&gt;In SQL, I can use join query, but I don't know how in SPL. Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 22:55:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-or-search-fields-from-two-different-indexes-with-a/m-p/503127#M139996</guid>
      <dc:creator>vnguyen46</dc:creator>
      <dc:date>2019-10-18T22:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to join or search fields from two different indexes with a common field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-or-search-fields-from-two-different-indexes-with-a/m-p/503128#M139997</link>
      <description>&lt;P&gt;You can try something like this &lt;/P&gt;

&lt;P&gt;index=indexA OR indexB |table field1,field2,field5,field6&lt;/P&gt;</description>
      <pubDate>Sat, 19 Oct 2019 02:20:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-or-search-fields-from-two-different-indexes-with-a/m-p/503128#M139997</guid>
      <dc:creator>iamsplunker31</dc:creator>
      <dc:date>2019-10-19T02:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to join or search fields from two different indexes with a common field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-or-search-fields-from-two-different-indexes-with-a/m-p/503129#M139998</link>
      <description>&lt;P&gt;Thanks for reply.&lt;/P&gt;

&lt;P&gt;Actually, I learned from other post and used this:&lt;BR /&gt;
indexA sourcetype...| rename field1 AS field | table field1, field2&lt;BR /&gt;
| join field&lt;BR /&gt;
[search indexB sourcetype...| rename field4 AS field | table field5, field6]&lt;/P&gt;

&lt;P&gt;It works well.&lt;BR /&gt;
Thanks again.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Oct 2019 02:52:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-or-search-fields-from-two-different-indexes-with-a/m-p/503129#M139998</guid>
      <dc:creator>vnguyen46</dc:creator>
      <dc:date>2019-10-19T02:52:29Z</dc:date>
    </item>
  </channel>
</rss>

