<?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 connect two databases from different servers with join command? in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/How-to-connect-two-databases-from-different-servers-with-join/m-p/627667#M11784</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/253087"&gt;@razzeri&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Join command default type is &amp;nbsp;INNER which tries to match all possible fields. Can you try below?&lt;/P&gt;&lt;P&gt;Assuming connection A is your Incidents table.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| dbxquery query=[...]  connection=A
| join type=left max=0 INCIDENT_NUMBER
              [ dbxquery  query=[...]  connection=B]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jan 2023 02:26:01 GMT</pubDate>
    <dc:creator>scelikok</dc:creator>
    <dc:date>2023-01-20T02:26:01Z</dc:date>
    <item>
      <title>How to connect two databases from different servers with join command?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-connect-two-databases-from-different-servers-with-join/m-p/627643#M11782</link>
      <description>&lt;P&gt;Hello guys. I received this task at my job, and I still need money in my pocket, so please help me :))&amp;nbsp;&lt;BR /&gt;I'm in a Network Operational team; maybe this will help you understand better the following description.&lt;BR /&gt;&lt;BR /&gt;So, In a single Splunk search &lt;STRONG&gt;I have to connect 2 databases, from different servers&lt;/STRONG&gt;.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;One DB contains "Incidents"&lt;/STRONG&gt;:&amp;nbsp; &lt;U&gt;Incident ID, Start time of the Incident (Let's call it &lt;STRONG&gt;A&lt;/STRONG&gt;), End time of the incident (&lt;STRONG&gt;B&lt;/STRONG&gt;)&lt;/U&gt;&lt;BR /&gt;&lt;STRONG&gt;The other DB contains&amp;nbsp; "Call Complaints"&lt;/STRONG&gt;:&amp;nbsp; &lt;U&gt;The timestamp of each Call complaint (&lt;STRONG&gt;C&lt;/STRONG&gt;)&lt;/U&gt;.&lt;BR /&gt;&lt;BR /&gt;I need to find out the amount of call complaints for each incident. So, if C&amp;gt;=A AND C&amp;lt;=B, we count a call complaint for a specific incident, and we can move on to check the next C timestamp, and so on.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have issues right from the start. I tried to connect the databases with the next syntax:&lt;BR /&gt;&lt;BR /&gt;| dbxquery query=[...]&amp;nbsp; connection=A&lt;BR /&gt;| join&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ dbxquery&amp;nbsp; query=[...]&amp;nbsp; connection=B]&lt;BR /&gt;&lt;BR /&gt;But, when I try a table command to see the interesting fields for me (Incident ID, A, B, C), the fields from the joined DB are looking the same on each line..&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23453i4955E97C6847E396/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;BR /&gt;Could you please help me with this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 21:18:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-connect-two-databases-from-different-servers-with-join/m-p/627643#M11782</guid>
      <dc:creator>razzeri</dc:creator>
      <dc:date>2023-01-19T21:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Connect 2 databases from different servers with join command</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-connect-two-databases-from-different-servers-with-join/m-p/627645#M11783</link>
      <description>&lt;P&gt;I think I need a new "time" field to link with both DB. But how??&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 20:22:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-connect-two-databases-from-different-servers-with-join/m-p/627645#M11783</guid>
      <dc:creator>razzeri</dc:creator>
      <dc:date>2023-01-19T20:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect two databases from different servers with join command?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-connect-two-databases-from-different-servers-with-join/m-p/627667#M11784</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/253087"&gt;@razzeri&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Join command default type is &amp;nbsp;INNER which tries to match all possible fields. Can you try below?&lt;/P&gt;&lt;P&gt;Assuming connection A is your Incidents table.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| dbxquery query=[...]  connection=A
| join type=left max=0 INCIDENT_NUMBER
              [ dbxquery  query=[...]  connection=B]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 02:26:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-connect-two-databases-from-different-servers-with-join/m-p/627667#M11784</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2023-01-20T02:26:01Z</dc:date>
    </item>
  </channel>
</rss>

