<?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: Subsearch: How can we only see results when they are NOT found? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-How-can-we-only-see-results-when-they-are-NOT-found/m-p/499146#M139040</link>
    <description>&lt;P&gt;Skip the &lt;CODE&gt;subsearch&lt;/CODE&gt; and do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="A" OR index="B"
| stats dc(index) AS indexCount values(index) AS index BY ID
| where index="B" AND indexCount=1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 23 Mar 2020 19:46:10 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2020-03-23T19:46:10Z</dc:date>
    <item>
      <title>Subsearch: How can we only see results when they are NOT found?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-How-can-we-only-see-results-when-they-are-NOT-found/m-p/499144#M139038</link>
      <description>&lt;P&gt;I running a subsearch where i use a ID to find events from the index B in the index A.&lt;/P&gt;

&lt;P&gt;What I want to do is: list the ID's from the index B that was not found in the index A&lt;/P&gt;

&lt;P&gt;The subsearch structure is :   search index=A &lt;A href="https://community.splunk.com/it%20returns%20the%20events%20in%20the%20index=B%20found%20in%20the%20index=%20A"&gt;search index=B |table ID's&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;How can I list the ID's that wasn't found?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 19:11:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-How-can-we-only-see-results-when-they-are-NOT-found/m-p/499144#M139038</guid>
      <dc:creator>mattheuslima</dc:creator>
      <dc:date>2020-03-23T19:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Subsearch: How can we only see results when they are NOT found?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-How-can-we-only-see-results-when-they-are-NOT-found/m-p/499145#M139039</link>
      <description>&lt;P&gt;You need to use NOT.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=A NOT [search index=B | table ID's]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Mar 2020 19:29:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-How-can-we-only-see-results-when-they-are-NOT-found/m-p/499145#M139039</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-03-23T19:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Subsearch: How can we only see results when they are NOT found?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-How-can-we-only-see-results-when-they-are-NOT-found/m-p/499146#M139040</link>
      <description>&lt;P&gt;Skip the &lt;CODE&gt;subsearch&lt;/CODE&gt; and do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="A" OR index="B"
| stats dc(index) AS indexCount values(index) AS index BY ID
| where index="B" AND indexCount=1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Mar 2020 19:46:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-How-can-we-only-see-results-when-they-are-NOT-found/m-p/499146#M139040</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-03-23T19:46:10Z</dc:date>
    </item>
  </channel>
</rss>

