<?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: Join Query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Join-Query/m-p/578959#M201782</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The sample query with index details as below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Index A&amp;nbsp;&lt;/P&gt;&lt;P&gt;ticket number , job name&lt;/P&gt;&lt;P&gt;Index B&lt;/P&gt;&lt;P&gt;Job Name,Status&lt;/P&gt;&lt;P&gt;Query :-&lt;/P&gt;&lt;P&gt;index=A&amp;nbsp;&lt;BR /&gt;| table ticket_number,job_name&lt;BR /&gt;| join type=left job_name&lt;BR /&gt;[search index=B&amp;nbsp;&lt;BR /&gt;| table Job_Name, Status&lt;BR /&gt;|rename Job_Name as "job_name"&lt;BR /&gt;]&lt;/P&gt;</description>
    <pubDate>Mon, 20 Dec 2021 17:59:14 GMT</pubDate>
    <dc:creator>chuck_life09</dc:creator>
    <dc:date>2021-12-20T17:59:14Z</dc:date>
    <item>
      <title>Join Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-Query/m-p/578914#M201762</link>
      <description>&lt;P&gt;I have an Index B&amp;nbsp; which has job_name and job_status details and another index A which has ticket number and job_name...&lt;/P&gt;&lt;P&gt;Index A to be joined with Index B to get the below details&lt;/P&gt;&lt;P&gt;ticket_number,job_name and job_status&lt;/P&gt;&lt;P&gt;I tried join type= inner job_name based on job_name&lt;BR /&gt;but i get empty results for job_status&lt;/P&gt;&lt;P&gt;what might be going wrong?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 13:18:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-Query/m-p/578914#M201762</guid>
      <dc:creator>chuck_life09</dc:creator>
      <dc:date>2021-12-20T13:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Join Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-Query/m-p/578954#M201778</link>
      <description>&lt;P&gt;Please share the full query.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 17:43:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-Query/m-p/578954#M201778</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-12-20T17:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Join Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-Query/m-p/578959#M201782</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The sample query with index details as below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Index A&amp;nbsp;&lt;/P&gt;&lt;P&gt;ticket number , job name&lt;/P&gt;&lt;P&gt;Index B&lt;/P&gt;&lt;P&gt;Job Name,Status&lt;/P&gt;&lt;P&gt;Query :-&lt;/P&gt;&lt;P&gt;index=A&amp;nbsp;&lt;BR /&gt;| table ticket_number,job_name&lt;BR /&gt;| join type=left job_name&lt;BR /&gt;[search index=B&amp;nbsp;&lt;BR /&gt;| table Job_Name, Status&lt;BR /&gt;|rename Job_Name as "job_name"&lt;BR /&gt;]&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 17:59:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-Query/m-p/578959#M201782</guid>
      <dc:creator>chuck_life09</dc:creator>
      <dc:date>2021-12-20T17:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Join Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-Query/m-p/578964#M201785</link>
      <description>&lt;P&gt;That query looks like it should work fine.&amp;nbsp; Just make sure the field names are exactly as they appear in the indexes.&lt;/P&gt;&lt;P&gt;If you still have trouble getting it to work, try this alternative query.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(index=A ticket_number=* job_name=*) OR (index=B Job_Name=*)
| rename Job_Name as job_name
| stats values(*) as * by job_name&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 20 Dec 2021 18:38:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-Query/m-p/578964#M201785</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-12-20T18:38:47Z</dc:date>
    </item>
  </channel>
</rss>

