<?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: Is cartesian product not possible in splunk using join? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-cartesian-product-not-possible-in-splunk-using-join/m-p/95074#M24551</link>
    <description>&lt;P&gt;You need to set the &lt;CODE&gt;max&lt;/CODE&gt; parameter on the join command to something higher than the default of 1: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Join"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Join&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Also, I would suggest, depending what you're doing, that you'd be &lt;EM&gt;much&lt;/EM&gt; better off using either a subsearch or a lookup if possible, as they are much more efficiently implemented in Splunk than the &lt;CODE&gt;join&lt;/CODE&gt; command.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jul 2012 21:23:54 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2012-07-10T21:23:54Z</dc:date>
    <item>
      <title>Is cartesian product not possible in splunk using join?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-cartesian-product-not-possible-in-splunk-using-join/m-p/95073#M24550</link>
      <description>&lt;P&gt;I am using a join search command. What I noticed is that join only takes one row from the sub search result for the joining field though my subsearch has more than one row on the joining field.&lt;BR /&gt;
In short it's not doing the Cartesian product as done by joins in SQL.&lt;/P&gt;

&lt;P&gt;e.g. search result for the outer search is &lt;/P&gt;

&lt;P&gt;host&lt;/P&gt;

&lt;P&gt;host1&lt;/P&gt;

&lt;P&gt;host2&lt;/P&gt;

&lt;P&gt;and subsearch return the following&lt;/P&gt;

&lt;P&gt;host instance status &lt;/P&gt;

&lt;P&gt;host1, 1, ON&lt;/P&gt;

&lt;P&gt;host1, 2, OFF&lt;/P&gt;

&lt;P&gt;host2, 1, OFF&lt;/P&gt;

&lt;P&gt;the join on host returns&lt;/P&gt;

&lt;P&gt;host1,1,ON (or host1,2,OFF)&lt;/P&gt;

&lt;P&gt;host2,1,OFF&lt;/P&gt;

&lt;P&gt;Is there anyway to get the Cartesian product in splunk?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2012 20:49:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-cartesian-product-not-possible-in-splunk-using-join/m-p/95073#M24550</guid>
      <dc:creator>asingla</dc:creator>
      <dc:date>2012-07-10T20:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Is cartesian product not possible in splunk using join?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-cartesian-product-not-possible-in-splunk-using-join/m-p/95074#M24551</link>
      <description>&lt;P&gt;You need to set the &lt;CODE&gt;max&lt;/CODE&gt; parameter on the join command to something higher than the default of 1: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Join"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Join&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Also, I would suggest, depending what you're doing, that you'd be &lt;EM&gt;much&lt;/EM&gt; better off using either a subsearch or a lookup if possible, as they are much more efficiently implemented in Splunk than the &lt;CODE&gt;join&lt;/CODE&gt; command.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2012 21:23:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-cartesian-product-not-possible-in-splunk-using-join/m-p/95074#M24551</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2012-07-10T21:23:54Z</dc:date>
    </item>
  </channel>
</rss>

