<?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: All results are not returned with multiple field exclusions in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/All-results-are-not-returned-with-multiple-field-exclusions/m-p/257955#M189564</link>
    <description>&lt;P&gt;The subsearch do have limitation in terms of number of rows and time to finalize. Is there a way to avoid the subsearch? Could you explain the requirement here?&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jul 2016 14:20:05 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-07-13T14:20:05Z</dc:date>
    <item>
      <title>All results are not returned with multiple field exclusions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/All-results-are-not-returned-with-multiple-field-exclusions/m-p/257951#M189560</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am having some issues with using multiple field exclusions as not all results are being returned (only the results for the last 2 days appear).&lt;/P&gt;

&lt;P&gt;EVT*-XXXX &lt;A href="https://community.splunk.com/host!=XXXX%20OR%20host!=XXXX"&gt;search eventtype=XXXXX | table txid&lt;/A&gt; NOT "vsp-vendor-id=XXXXXXXXXXXXXX" &lt;/P&gt;

&lt;P&gt;If I just exclude certain hosts, I get all the required results. However, when I add the vendor id exclusion, only results for the past 2 days appear. &lt;/P&gt;

&lt;P&gt;Any ideas why?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2016 14:26:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/All-results-are-not-returned-with-multiple-field-exclusions/m-p/257951#M189560</guid>
      <dc:creator>sarahalhawi</dc:creator>
      <dc:date>2016-07-12T14:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: All results are not returned with multiple field exclusions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/All-results-are-not-returned-with-multiple-field-exclusions/m-p/257952#M189561</link>
      <description>&lt;P&gt;Try running following and see if you really have any data before past 2 days &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EVT*-XXXX [search eventtype=XXXXX | table txid] (host!=XXXX OR host!=XXXX) "vsp-vendor-id=XXXXXXXXXXXXXX"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Jul 2016 16:51:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/All-results-are-not-returned-with-multiple-field-exclusions/m-p/257952#M189561</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-07-12T16:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: All results are not returned with multiple field exclusions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/All-results-are-not-returned-with-multiple-field-exclusions/m-p/257953#M189562</link>
      <description>&lt;P&gt;Yes, this works and returns data for more than 2 days ago. However, as soon as I add another filter, e.g. another vendor id to exclude, only results for 2 days appear. Could this be a limitation of the sub-query or it is something configurable?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2016 13:28:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/All-results-are-not-returned-with-multiple-field-exclusions/m-p/257953#M189562</guid>
      <dc:creator>sarahalhawi</dc:creator>
      <dc:date>2016-07-13T13:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: All results are not returned with multiple field exclusions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/All-results-are-not-returned-with-multiple-field-exclusions/m-p/257954#M189563</link>
      <description>&lt;P&gt;It has to be that you have a typo.  If you cut and paste both a supposedly matching event and cut and paste your ACTUAL search, it should be easy to tell.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2016 13:54:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/All-results-are-not-returned-with-multiple-field-exclusions/m-p/257954#M189563</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-07-13T13:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: All results are not returned with multiple field exclusions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/All-results-are-not-returned-with-multiple-field-exclusions/m-p/257955#M189564</link>
      <description>&lt;P&gt;The subsearch do have limitation in terms of number of rows and time to finalize. Is there a way to avoid the subsearch? Could you explain the requirement here?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2016 14:20:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/All-results-are-not-returned-with-multiple-field-exclusions/m-p/257955#M189564</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-07-13T14:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: All results are not returned with multiple field exclusions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/All-results-are-not-returned-with-multiple-field-exclusions/m-p/257956#M189565</link>
      <description>&lt;P&gt;Possibly, what I want to be able to do is filter out a couple of values from different fields (e,g, 2 vendor ids and 2 hosts)&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2016 14:40:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/All-results-are-not-returned-with-multiple-field-exclusions/m-p/257956#M189565</guid>
      <dc:creator>sarahalhawi</dc:creator>
      <dc:date>2016-07-13T14:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: All results are not returned with multiple field exclusions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/All-results-are-not-returned-with-multiple-field-exclusions/m-p/257957#M189566</link>
      <description>&lt;P&gt;What's the purpose of subsearch? OR it's just the formatting issue while posting question.&lt;BR /&gt;
    [search eventtype=XXXXX | table txid] &lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2016 14:42:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/All-results-are-not-returned-with-multiple-field-exclusions/m-p/257957#M189566</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-07-13T14:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: All results are not returned with multiple field exclusions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/All-results-are-not-returned-with-multiple-field-exclusions/m-p/257958#M189567</link>
      <description>&lt;P&gt;The query I posted is correct (i have just put XXX in the place of sensitive information). &lt;/P&gt;

&lt;P&gt;I want to be able to do &lt;/P&gt;

&lt;P&gt;EVT*-XXXXX[search eventtype=XXXXX | table XXXXX]  vsp_vendor_id!=XXXXXX vsp_vendor_id!=XXXXXX host!=XXXXXX host!=XXXXXX&lt;/P&gt;

&lt;P&gt;and get results for more than 2 days. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:13:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/All-results-are-not-returned-with-multiple-field-exclusions/m-p/257958#M189567</guid>
      <dc:creator>sarahalhawi</dc:creator>
      <dc:date>2020-09-29T10:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: All results are not returned with multiple field exclusions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/All-results-are-not-returned-with-multiple-field-exclusions/m-p/257959#M189568</link>
      <description>&lt;P&gt;What's the purpose of subsearch? Are you using third filter based on some field?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2016 15:03:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/All-results-are-not-returned-with-multiple-field-exclusions/m-p/257959#M189568</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-07-13T15:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: All results are not returned with multiple field exclusions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/All-results-are-not-returned-with-multiple-field-exclusions/m-p/257960#M189569</link>
      <description>&lt;P&gt;Yes, to exclude certain values. &lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2016 15:22:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/All-results-are-not-returned-with-multiple-field-exclusions/m-p/257960#M189569</guid>
      <dc:creator>sarahalhawi</dc:creator>
      <dc:date>2016-07-13T15:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: All results are not returned with multiple field exclusions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/All-results-are-not-returned-with-multiple-field-exclusions/m-p/257961#M189570</link>
      <description>&lt;P&gt;Have you tried inspecting the job to see the search Splunk actually ends up running after the subsearch is resolved?  Is there anything specific about the results in the past 2 days that might also explain why those are the only returned, as opposed to search just randomly returning results only that old?&lt;/P&gt;

&lt;P&gt;On a side note, are you sure you don't want AND instead of OR here?   &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; (host!=XXXX OR host!=XXXX) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It's hard to tell with the obfuscated data, but OR'ing together negatives doesn't seem to accomplish much.  For example, if I have a host named server1, then (host!=server1 OR host!=server2) is still going to resolve to true because the second condition is true.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2016 16:02:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/All-results-are-not-returned-with-multiple-field-exclusions/m-p/257961#M189570</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2016-07-13T16:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: All results are not returned with multiple field exclusions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/All-results-are-not-returned-with-multiple-field-exclusions/m-p/257962#M189571</link>
      <description>&lt;P&gt;Yes, if I run the query without the filters, EVT*-XXXX [search eventtype=XXXXX | table txid], I get results for more than 2 days. &lt;/P&gt;

&lt;P&gt;Thanks for the tips on the OR, just using a list of values now rather than AND or OR. &lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2016 16:10:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/All-results-are-not-returned-with-multiple-field-exclusions/m-p/257962#M189571</guid>
      <dc:creator>sarahalhawi</dc:creator>
      <dc:date>2016-07-13T16:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: All results are not returned with multiple field exclusions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/All-results-are-not-returned-with-multiple-field-exclusions/m-p/257963#M189572</link>
      <description>&lt;P&gt;But for those results without the filters, are there older events that would match filter?  I mean, you are filtering, so maybe there isn't older data that actually matches your filter.  If there is older data that matches your filter, maybe there is typo in your filter like woodcock suggested.  &lt;/P&gt;

&lt;P&gt;We don't have your data so we can't do that troubleshooting, but you should be able to make your way through the results to figure out what's happening.&lt;/P&gt;

&lt;P&gt;Also, if you haven't yet, inspect the job to see what Splunk actually searching after the subsearch is resolved.  Maybe there will be something noticeable/obviously wrong if you look at it there.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2016 16:22:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/All-results-are-not-returned-with-multiple-field-exclusions/m-p/257963#M189572</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2016-07-13T16:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: All results are not returned with multiple field exclusions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/All-results-are-not-returned-with-multiple-field-exclusions/m-p/257964#M189573</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EVT*-XXXX [search eventtype=XXXXX | stats count by txid | table txid ] NOT (host=XXXX OR host=XXXX OR "vsp-vendor-id=XXXXXXXXXXXXXX")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Jul 2016 16:28:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/All-results-are-not-returned-with-multiple-field-exclusions/m-p/257964#M189573</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-07-13T16:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: All results are not returned with multiple field exclusions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/All-results-are-not-returned-with-multiple-field-exclusions/m-p/257965#M189574</link>
      <description>&lt;P&gt;thanks for that maciep, i ran the subsearch independently and older results are returned. Will give the job inspection a try &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2016 08:52:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/All-results-are-not-returned-with-multiple-field-exclusions/m-p/257965#M189574</guid>
      <dc:creator>sarahalhawi</dc:creator>
      <dc:date>2016-07-14T08:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: All results are not returned with multiple field exclusions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/All-results-are-not-returned-with-multiple-field-exclusions/m-p/257966#M189575</link>
      <description>&lt;P&gt;thank you so much this has worked!! legend&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2016 12:36:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/All-results-are-not-returned-with-multiple-field-exclusions/m-p/257966#M189575</guid>
      <dc:creator>sarahalhawi</dc:creator>
      <dc:date>2016-07-14T12:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: All results are not returned with multiple field exclusions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/All-results-are-not-returned-with-multiple-field-exclusions/m-p/257967#M189576</link>
      <description>&lt;P&gt;do you know why the quotes are required? without the quotes, the right results are not returned. &lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2016 12:40:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/All-results-are-not-returned-with-multiple-field-exclusions/m-p/257967#M189576</guid>
      <dc:creator>sarahalhawi</dc:creator>
      <dc:date>2016-07-14T12:40:42Z</dc:date>
    </item>
  </channel>
</rss>

