<?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 to use subsearch to find which values from a subsearch populated table aren't in another search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-subsearch-to-find-which-values-from-a-subsearch/m-p/384711#M112363</link>
    <description>&lt;P&gt;Maybe this gives you what you want?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=A sourcetype=A OR (index=B ...more filters) | chart count over memberID by index | where A=0 AND B&amp;gt;0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 08 May 2018 07:21:11 GMT</pubDate>
    <dc:creator>knielsen</dc:creator>
    <dc:date>2018-05-08T07:21:11Z</dc:date>
    <item>
      <title>How to use subsearch to find which values from a subsearch populated table aren't in another search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-subsearch-to-find-which-values-from-a-subsearch/m-p/384710#M112362</link>
      <description>&lt;P&gt;I have two seperate sourcetypes. In the first sourcetype, I have a field  &lt;CODE&gt;memberID&lt;/CODE&gt; that also exists in the second sourcetype. &lt;/P&gt;

&lt;P&gt;The query I am using right now is:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=...sourcetype=A.... &lt;BR /&gt;
      [search index=... sourcetype=B... other filters | table memberID]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;This correctly returns the memberID's in sourcetype A that exist in the subsearch in sourcetype B. However, not all memberID's returned in the table generated in the subsearch are returning in this combined search. I am trying to find out which memberIDs exist from the subsearch(sourcetype B) and do NOT exist in the primary search(sourcetype A).&lt;/P&gt;

&lt;P&gt;If I do:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=...sourcetype=A.... NOT&lt;BR /&gt;
      [search index=... sourcetype=B... other filters | table memberID]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;it just returns a large list of everything except all the memberIDs in the subsearch, but I want to specifically get the list of memberIDs from the subsearch that are not in the primary search.&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 04:17:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-subsearch-to-find-which-values-from-a-subsearch/m-p/384710#M112362</guid>
      <dc:creator>brajaram</dc:creator>
      <dc:date>2018-05-08T04:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to use subsearch to find which values from a subsearch populated table aren't in another search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-subsearch-to-find-which-values-from-a-subsearch/m-p/384711#M112363</link>
      <description>&lt;P&gt;Maybe this gives you what you want?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=A sourcetype=A OR (index=B ...more filters) | chart count over memberID by index | where A=0 AND B&amp;gt;0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 May 2018 07:21:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-subsearch-to-find-which-values-from-a-subsearch/m-p/384711#M112363</guid>
      <dc:creator>knielsen</dc:creator>
      <dc:date>2018-05-08T07:21:11Z</dc:date>
    </item>
  </channel>
</rss>

