<?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 How to exclude search query results from base search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-search-query-results-from-base-search/m-p/329852#M159900</link>
    <description>&lt;P&gt;I have file processing events with 2 stages - X &amp;amp; Y. I want to get filenames which have gone through X but not Y. I am unable to do so. Could you please advise?&lt;BR /&gt;
I can list filenames with X stage or Y stage as below&lt;/P&gt;

&lt;P&gt;index=test stage=X  | stats values(filename)&lt;BR /&gt;
index=test stage=Y | stats values(filename)&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jul 2017 15:16:22 GMT</pubDate>
    <dc:creator>barunbiswas</dc:creator>
    <dc:date>2017-07-25T15:16:22Z</dc:date>
    <item>
      <title>How to exclude search query results from base search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-search-query-results-from-base-search/m-p/329852#M159900</link>
      <description>&lt;P&gt;I have file processing events with 2 stages - X &amp;amp; Y. I want to get filenames which have gone through X but not Y. I am unable to do so. Could you please advise?&lt;BR /&gt;
I can list filenames with X stage or Y stage as below&lt;/P&gt;

&lt;P&gt;index=test stage=X  | stats values(filename)&lt;BR /&gt;
index=test stage=Y | stats values(filename)&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2017 15:16:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-search-query-results-from-base-search/m-p/329852#M159900</guid>
      <dc:creator>barunbiswas</dc:creator>
      <dc:date>2017-07-25T15:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude search query results from base search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-search-query-results-from-base-search/m-p/329853#M159901</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=test stage=X OR stage=Y | stats values(stage) as stages by filename | where mvcount(stages)=1 AND stages="X"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Basically select rows for both stages, generating list of stages each filename has gone through and finally, selecting only events which went though single stage which is "X".&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2017 17:17:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-search-query-results-from-base-search/m-p/329853#M159901</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-07-25T17:17:30Z</dc:date>
    </item>
  </channel>
</rss>

