<?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 Combine Two Different Events From Different Indexes/Sourcetypes in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-combine-two-different-events-from-different-indexes/m-p/585760#M11609</link>
    <description>&lt;P&gt;You were close.&amp;nbsp; Run the query you have then use the &lt;FONT face="courier new,courier"&gt;stats&lt;/FONT&gt; command to merge the results.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(index=data sourcetype=source1) OR (index=customer sourcetype=sourcetype2)
| stats values(*) as * by customer&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Feb 2022 18:24:43 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2022-02-18T18:24:43Z</dc:date>
    <item>
      <title>How to combine two different events from different indexes/sourcetypes?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-combine-two-different-events-from-different-indexes/m-p/585734#M11608</link>
      <description>&lt;P&gt;Hello, I'm trying to combine different events (with different fields) into one event based on a common field value.&amp;nbsp; Is there an easy way to do this?&amp;nbsp; For example:&lt;BR /&gt;&lt;BR /&gt;(index=data sourcetype=source1) OR (index=customer sourcetype=sourcetype2)&lt;BR /&gt;&lt;BR /&gt;Event from Source 1:&lt;BR /&gt;customer#: 12345&lt;BR /&gt;billingpackage: fastspeed&lt;BR /&gt;speed: 50m&lt;BR /&gt;&lt;BR /&gt;Event from Source 2:&lt;BR /&gt;customer#: 12345&lt;BR /&gt;address: 1st street noth&lt;BR /&gt;zip: 41783&lt;BR /&gt;&lt;BR /&gt;Desired Event:&lt;BR /&gt;customer#: 12345&lt;BR /&gt;billingpackage: fastspeed&lt;BR /&gt;speed: 50m&lt;BR /&gt;address: 1st street north&lt;BR /&gt;zip: 41783&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for the help!&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 18:34:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-combine-two-different-events-from-different-indexes/m-p/585734#M11608</guid>
      <dc:creator>mikepangrac</dc:creator>
      <dc:date>2022-02-18T18:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to Combine Two Different Events From Different Indexes/Sourcetypes</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-combine-two-different-events-from-different-indexes/m-p/585760#M11609</link>
      <description>&lt;P&gt;You were close.&amp;nbsp; Run the query you have then use the &lt;FONT face="courier new,courier"&gt;stats&lt;/FONT&gt; command to merge the results.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(index=data sourcetype=source1) OR (index=customer sourcetype=sourcetype2)
| stats values(*) as * by customer&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 18:24:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-combine-two-different-events-from-different-indexes/m-p/585760#M11609</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-02-18T18:24:43Z</dc:date>
    </item>
  </channel>
</rss>

