<?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 How can I join three fields with a common ID field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-join-three-fields-with-a-common-ID-field/m-p/291683#M88111</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3393iB50C66D3A4704B72/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;i want to join all three fields with common id field. please  help me with search query&lt;/P&gt;

&lt;P&gt;| table id servicename  errordetails &lt;/P&gt;

&lt;P&gt;i have data like this&lt;BR /&gt;
Ex:&lt;BR /&gt;
In index = abc "error"&lt;BR /&gt;
servicename    id&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;abc                    101&lt;BR /&gt;
gfg                     102&lt;BR /&gt;
hhv                    105&lt;/P&gt;

&lt;P&gt;and In index = abc "errordetails"&lt;BR /&gt;
id errordetails&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;103 error1&lt;BR /&gt;
102 error5&lt;BR /&gt;
104 errorabc&lt;BR /&gt;
105 error4545&lt;/P&gt;

&lt;P&gt;i want to join both by field "id". so i want data like this&lt;/P&gt;

&lt;H2&gt;id servicename   errordetails&lt;/H2&gt;

&lt;P&gt;102 gfg                    error5&lt;BR /&gt;
105 hhy                  error4545&lt;/P&gt;

&lt;P&gt;Please help me with this&lt;/P&gt;</description>
    <pubDate>Wed, 16 Aug 2017 18:20:18 GMT</pubDate>
    <dc:creator>sravankaripe</dc:creator>
    <dc:date>2017-08-16T18:20:18Z</dc:date>
    <item>
      <title>How can I join three fields with a common ID field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-join-three-fields-with-a-common-ID-field/m-p/291683#M88111</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3393iB50C66D3A4704B72/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;i want to join all three fields with common id field. please  help me with search query&lt;/P&gt;

&lt;P&gt;| table id servicename  errordetails &lt;/P&gt;

&lt;P&gt;i have data like this&lt;BR /&gt;
Ex:&lt;BR /&gt;
In index = abc "error"&lt;BR /&gt;
servicename    id&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;abc                    101&lt;BR /&gt;
gfg                     102&lt;BR /&gt;
hhv                    105&lt;/P&gt;

&lt;P&gt;and In index = abc "errordetails"&lt;BR /&gt;
id errordetails&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;103 error1&lt;BR /&gt;
102 error5&lt;BR /&gt;
104 errorabc&lt;BR /&gt;
105 error4545&lt;/P&gt;

&lt;P&gt;i want to join both by field "id". so i want data like this&lt;/P&gt;

&lt;H2&gt;id servicename   errordetails&lt;/H2&gt;

&lt;P&gt;102 gfg                    error5&lt;BR /&gt;
105 hhy                  error4545&lt;/P&gt;

&lt;P&gt;Please help me with this&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 18:20:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-join-three-fields-with-a-common-ID-field/m-p/291683#M88111</guid>
      <dc:creator>sravankaripe</dc:creator>
      <dc:date>2017-08-16T18:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can I join three fields with a common ID field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-join-three-fields-with-a-common-ID-field/m-p/291684#M88112</link>
      <description>&lt;P&gt;try something like this to avoid using join, as there are limits.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index = abc "errordetails") OR (index = abc "error")
|stats values(servicename) as servicename values(errordetails) as errordetails by id
|where isnotnull(servicename) AND isnotnull(errordetails)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the where statement should ensure you're only grabbing ids that include both errordetails and servicename, without it, it's like an outer join.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 18:26:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-join-three-fields-with-a-common-ID-field/m-p/291684#M88112</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-08-16T18:26:00Z</dc:date>
    </item>
  </channel>
</rss>

