<?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 to merge data from 2 index with common field in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-data-from-2-index-with-common-field/m-p/404431#M71809</link>
    <description>&lt;P&gt;I have the following data in 2 different indexes that I want to merge based on the common email field. &lt;BR /&gt;
Index B is a big dataset containing around 125k events. I tried using JOIN- but it has limitation and won't return desired results.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Index A

email         event
abc@xyz.com   click


Index B
email             field2 .  field3 .  field4 .  field5
abc@xyz.com       blah .    blah .    blah      blah
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Final output should be &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;email    event . field2 .  field3 .  field4 .  field5
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 04 Jun 2019 22:34:56 GMT</pubDate>
    <dc:creator>kiranpatil1985</dc:creator>
    <dc:date>2019-06-04T22:34:56Z</dc:date>
    <item>
      <title>How to merge data from 2 index with common field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-data-from-2-index-with-common-field/m-p/404431#M71809</link>
      <description>&lt;P&gt;I have the following data in 2 different indexes that I want to merge based on the common email field. &lt;BR /&gt;
Index B is a big dataset containing around 125k events. I tried using JOIN- but it has limitation and won't return desired results.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Index A

email         event
abc@xyz.com   click


Index B
email             field2 .  field3 .  field4 .  field5
abc@xyz.com       blah .    blah .    blah      blah
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Final output should be &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;email    event . field2 .  field3 .  field4 .  field5
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Jun 2019 22:34:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-data-from-2-index-with-common-field/m-p/404431#M71809</guid>
      <dc:creator>kiranpatil1985</dc:creator>
      <dc:date>2019-06-04T22:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge data from 2 index with common field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-data-from-2-index-with-common-field/m-p/404432#M71810</link>
      <description>&lt;P&gt;@kiranpatil1985,&lt;/P&gt;

&lt;P&gt;Try,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index="A" OR index="B")|stats values(event) as event,values(field2) as field2,.....,values(fieldn) as fieldn by email
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Jun 2019 02:55:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-data-from-2-index-with-common-field/m-p/404432#M71810</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-06-05T02:55:16Z</dc:date>
    </item>
  </channel>
</rss>

