<?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: Inner Join in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Inner-Join/m-p/690964#M114945</link>
    <description>&lt;P&gt;First load the lookups and then group both realms using&amp;nbsp;&lt;STRONG&gt;stats.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Try to do something like this and adjust it to your needs,&amp;nbsp; assuming there is a field that is common in both data sets:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|inputlookup lookup1
|inputlookup lookup2 append=true
| stats values(fieldA) AS fieldA (...) by fieldB_common_in_both_datasets&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If there is not common field, use rename or eval to create that common field before the stats:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup lookup1
| inputlookup lookup2 append=true
| rename fieldC as fieldB
| stats values(fieldA) AS fieldA (...) by fieldB&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jun 2024 07:30:57 GMT</pubDate>
    <dc:creator>glc_slash_it</dc:creator>
    <dc:date>2024-06-18T07:30:57Z</dc:date>
    <item>
      <title>Inner Join</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Inner-Join/m-p/690958#M114943</link>
      <description>&lt;P&gt;Let say I have 2 lookup files , lookup1&amp;nbsp; has 50 values and other have 150 values&lt;BR /&gt;so when I inner join&amp;nbsp; lookup1 to lookup 2 it gives me low results but when i reverse it results change and are higher.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 06:57:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Inner-Join/m-p/690958#M114943</guid>
      <dc:creator>Siddharthnegi</dc:creator>
      <dc:date>2024-06-18T06:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Inner-Join/m-p/690964#M114945</link>
      <description>&lt;P&gt;First load the lookups and then group both realms using&amp;nbsp;&lt;STRONG&gt;stats.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Try to do something like this and adjust it to your needs,&amp;nbsp; assuming there is a field that is common in both data sets:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|inputlookup lookup1
|inputlookup lookup2 append=true
| stats values(fieldA) AS fieldA (...) by fieldB_common_in_both_datasets&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If there is not common field, use rename or eval to create that common field before the stats:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup lookup1
| inputlookup lookup2 append=true
| rename fieldC as fieldB
| stats values(fieldA) AS fieldA (...) by fieldB&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 07:30:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Inner-Join/m-p/690964#M114945</guid>
      <dc:creator>glc_slash_it</dc:creator>
      <dc:date>2024-06-18T07:30:57Z</dc:date>
    </item>
  </channel>
</rss>

