<?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: Selective join in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Selective-join/m-p/222559#M43634</link>
    <description>&lt;P&gt;Something like this might work (without join, have not seen your current query)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="A" OR sourcetype="B" ..other base search | stats values(sourcetype) as sourcetype values(field1) as field1 values(field2) as field2 ... by common_field
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Set following conditions based on checkbox selection&lt;/P&gt;

&lt;P&gt;to show only items present in both&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | where mvcount(sourcetype)=2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To show all&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | where mvcount(sourcetype)&amp;gt;0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 11 Jan 2016 17:05:01 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-01-11T17:05:01Z</dc:date>
    <item>
      <title>Selective join</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Selective-join/m-p/222558#M43633</link>
      <description>&lt;P&gt;Trying out for below &lt;/P&gt;

&lt;P&gt;1) sourcetype="A" has login details &lt;BR /&gt;
2) sourcetype ="B" has success login details &lt;/P&gt;

&lt;P&gt;When I select a list box/check box on failures, I want to show a list joining both details where a record is present in the success table.&lt;BR /&gt;
If I select All, It should show just details from the user table. (more like outer join here)&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2016 16:46:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Selective-join/m-p/222558#M43633</guid>
      <dc:creator>sreelesh_n</dc:creator>
      <dc:date>2016-01-11T16:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Selective join</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Selective-join/m-p/222559#M43634</link>
      <description>&lt;P&gt;Something like this might work (without join, have not seen your current query)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="A" OR sourcetype="B" ..other base search | stats values(sourcetype) as sourcetype values(field1) as field1 values(field2) as field2 ... by common_field
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Set following conditions based on checkbox selection&lt;/P&gt;

&lt;P&gt;to show only items present in both&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | where mvcount(sourcetype)=2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To show all&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | where mvcount(sourcetype)&amp;gt;0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Jan 2016 17:05:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Selective-join/m-p/222559#M43634</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-01-11T17:05:01Z</dc:date>
    </item>
  </channel>
</rss>

