<?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 connect two transaction commands from 3 sources linked by 2 fields? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-connect-two-transaction-commands-from-3-sources-linked-by/m-p/233661#M69414</link>
    <description>&lt;P&gt;I want to track a single transaction through three different events. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Event A&lt;/STRONG&gt; and &lt;STRONG&gt;Event B&lt;/STRONG&gt; share a common field &lt;STRONG&gt;f1&lt;/STRONG&gt; which links the events as a transaction&lt;BR /&gt;
&lt;STRONG&gt;Event B&lt;/STRONG&gt; and &lt;STRONG&gt;Event C&lt;/STRONG&gt; share a common field &lt;STRONG&gt;f2&lt;/STRONG&gt; which links the events as a transaction&lt;BR /&gt;
&lt;STRONG&gt;Event A&lt;/STRONG&gt; does not contain &lt;STRONG&gt;f2&lt;/STRONG&gt;.&lt;BR /&gt;
&lt;STRONG&gt;Event C&lt;/STRONG&gt; does not contain &lt;STRONG&gt;f1&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I have a search like the following&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;event=A OR event=B OR event=C
| transaction f1 maxspan=2s keeporphans=true keepevicted=true
| transaction f2 maxspan=2s
| table f1 f2 other_field_unique_to_A other_field_unique_to_B other_field_unique_to_C
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Events of type &lt;STRONG&gt;A&lt;/STRONG&gt; and &lt;STRONG&gt;B&lt;/STRONG&gt; are joined exactly how I like - on field &lt;STRONG&gt;f1&lt;/STRONG&gt;. Their unique fields appear together on the same line of the output table.&lt;BR /&gt;
In the output table, I can see all the events of type &lt;STRONG&gt;C&lt;/STRONG&gt;, but none of them are ever joined in to the corresponding transactions of type A and B.&lt;/P&gt;

&lt;P&gt;What can be done here?&lt;/P&gt;</description>
    <pubDate>Mon, 09 Jan 2017 23:40:08 GMT</pubDate>
    <dc:creator>e_psilo_n</dc:creator>
    <dc:date>2017-01-09T23:40:08Z</dc:date>
    <item>
      <title>How to connect two transaction commands from 3 sources linked by 2 fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-connect-two-transaction-commands-from-3-sources-linked-by/m-p/233661#M69414</link>
      <description>&lt;P&gt;I want to track a single transaction through three different events. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Event A&lt;/STRONG&gt; and &lt;STRONG&gt;Event B&lt;/STRONG&gt; share a common field &lt;STRONG&gt;f1&lt;/STRONG&gt; which links the events as a transaction&lt;BR /&gt;
&lt;STRONG&gt;Event B&lt;/STRONG&gt; and &lt;STRONG&gt;Event C&lt;/STRONG&gt; share a common field &lt;STRONG&gt;f2&lt;/STRONG&gt; which links the events as a transaction&lt;BR /&gt;
&lt;STRONG&gt;Event A&lt;/STRONG&gt; does not contain &lt;STRONG&gt;f2&lt;/STRONG&gt;.&lt;BR /&gt;
&lt;STRONG&gt;Event C&lt;/STRONG&gt; does not contain &lt;STRONG&gt;f1&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I have a search like the following&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;event=A OR event=B OR event=C
| transaction f1 maxspan=2s keeporphans=true keepevicted=true
| transaction f2 maxspan=2s
| table f1 f2 other_field_unique_to_A other_field_unique_to_B other_field_unique_to_C
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Events of type &lt;STRONG&gt;A&lt;/STRONG&gt; and &lt;STRONG&gt;B&lt;/STRONG&gt; are joined exactly how I like - on field &lt;STRONG&gt;f1&lt;/STRONG&gt;. Their unique fields appear together on the same line of the output table.&lt;BR /&gt;
In the output table, I can see all the events of type &lt;STRONG&gt;C&lt;/STRONG&gt;, but none of them are ever joined in to the corresponding transactions of type A and B.&lt;/P&gt;

&lt;P&gt;What can be done here?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2017 23:40:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-connect-two-transaction-commands-from-3-sources-linked-by/m-p/233661#M69414</guid>
      <dc:creator>e_psilo_n</dc:creator>
      <dc:date>2017-01-09T23:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect two transaction commands from 3 sources linked by 2 fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-connect-two-transaction-commands-from-3-sources-linked-by/m-p/233662#M69415</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;event=A OR event=B OR event=C
| eventstats values(f1) as f1_temp by f2 | eval f1=coalesce(f1,f1_temp)
| eventstats values(f2) as f2_temp by f1 | eval f2=coalesce(f2,f2_temp)
| stats values(uniqfield1) as uniqfiel1 values(uniqfield2) as uniqfield2.... by f1 f2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Jan 2017 00:04:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-connect-two-transaction-commands-from-3-sources-linked-by/m-p/233662#M69415</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-10T00:04:57Z</dc:date>
    </item>
  </channel>
</rss>

