<?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 do I join different events on an ID  with different source types? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-join-different-events-on-an-ID-with-different-source/m-p/443944#M125916</link>
    <description>&lt;P&gt;Here's something to try.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex (source1 OR source2) | stats values(infofield1) as infofield1 values(infofield2) as infofield2 by id | fillnull infofield2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 24 Oct 2018 12:47:36 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2018-10-24T12:47:36Z</dc:date>
    <item>
      <title>How do I join different events on an ID  with different source types?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-join-different-events-on-an-ID-with-different-source/m-p/443943#M125915</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;

&lt;P&gt;I have many messages with two different source types and an ID and a information field. For every ID, there is one message from source 1 and one from source 2. I need to display to every ID the information field of both source types:&lt;/P&gt;

&lt;P&gt;Example:&lt;/P&gt;

&lt;H2&gt;ID   |  Source 1                          | Source 2                                 |&lt;/H2&gt;

&lt;P&gt;1     | info field from source 1 | info field from source 2        |&lt;BR /&gt;
2     |info field from source 2  | null                                           |&lt;/P&gt;

&lt;P&gt;If there is no second event to an ID from the other source, "null" should be displayed.&lt;/P&gt;

&lt;P&gt;How can I perform this join/combination?&lt;/P&gt;

&lt;P&gt;My try: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex source1 | table id, infofield1 | join type=outer [search index=myindex source2 |table id, infofield2]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 07:29:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-join-different-events-on-an-ID-with-different-source/m-p/443943#M125915</guid>
      <dc:creator>nikosattlermhp</dc:creator>
      <dc:date>2018-10-24T07:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I join different events on an ID  with different source types?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-join-different-events-on-an-ID-with-different-source/m-p/443944#M125916</link>
      <description>&lt;P&gt;Here's something to try.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex (source1 OR source2) | stats values(infofield1) as infofield1 values(infofield2) as infofield2 by id | fillnull infofield2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 Oct 2018 12:47:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-join-different-events-on-an-ID-with-different-source/m-p/443944#M125916</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-10-24T12:47:36Z</dc:date>
    </item>
  </channel>
</rss>

