<?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: Join two heavy tables in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Join-two-heavy-tables/m-p/32198#M6701</link>
    <description>&lt;P&gt;Thanks, jeff. &lt;/P&gt;

&lt;P&gt;B is not unique but I can narrow span  .. | transaction int maxspan=1d. I need to get just a fact of chain A-&amp;gt;B-&amp;gt;C existance, so I think the query you provided does the job. Thank you&lt;/P&gt;</description>
    <pubDate>Fri, 15 Feb 2013 06:21:21 GMT</pubDate>
    <dc:creator>chakheevav</dc:creator>
    <dc:date>2013-02-15T06:21:21Z</dc:date>
    <item>
      <title>Join two heavy tables</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-two-heavy-tables/m-p/32196#M6699</link>
      <description>&lt;P&gt;I have a bunch of events in one index. The events are divided by sourcetype, for example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=foo | fields from, to  (about 5 million events)
sourcetype=bar | fields from, to  (about 2 million events)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;These searches return the results:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1. from=A , to=B

2. from=B , to=C
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So the question is how to join the above results to get a table:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;from   to
A      C
........
A{n}   C{k}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Feb 2013 13:33:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-two-heavy-tables/m-p/32196#M6699</guid>
      <dc:creator>chakheevav</dc:creator>
      <dc:date>2013-02-14T13:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Join two heavy tables</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-two-heavy-tables/m-p/32197#M6700</link>
      <description>&lt;P&gt;As I understand it, your example from A to C through B (A -&amp;gt; B -&amp;gt; C)? Are A, B, and C always unique? I'm presuming there's something to build the transaction on... B if unique, B in combination with _time, or some transaction identifier...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=foo OR sourcetype=bar 
| eval int=if(sourcetype==foo,to,from)
| eval f=case(sourcetype==foo,from)
| eval t=case(sourcetype==bar,to)
| transaction int
| fields f,int,t
| stats count by f,t
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I missed the mark post some more specific examples and I or someone else from the community may be able to give better guidance.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2013 14:21:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-two-heavy-tables/m-p/32197#M6700</guid>
      <dc:creator>jeff</dc:creator>
      <dc:date>2013-02-14T14:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Join two heavy tables</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-two-heavy-tables/m-p/32198#M6701</link>
      <description>&lt;P&gt;Thanks, jeff. &lt;/P&gt;

&lt;P&gt;B is not unique but I can narrow span  .. | transaction int maxspan=1d. I need to get just a fact of chain A-&amp;gt;B-&amp;gt;C existance, so I think the query you provided does the job. Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2013 06:21:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-two-heavy-tables/m-p/32198#M6701</guid>
      <dc:creator>chakheevav</dc:creator>
      <dc:date>2013-02-15T06:21:21Z</dc:date>
    </item>
  </channel>
</rss>

