<?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 Which is better NOT  or != in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Which-is-better-NOT-or/m-p/53422#M12993</link>
    <description>&lt;P&gt;Here are two searches that are the same.&lt;/P&gt;

&lt;P&gt;NOT FIELD="value"&lt;/P&gt;

&lt;P&gt;FIELD!="value"&lt;/P&gt;

&lt;P&gt;Which should be used? Is this just a personal preference or are there any performance differences between the two.&lt;/P&gt;

&lt;P&gt;There are lots of cases where the NOT prefixes a much more complex search, but I'm just wondering about this simple case.&lt;/P&gt;</description>
    <pubDate>Sat, 18 Sep 2010 02:57:31 GMT</pubDate>
    <dc:creator>skeetermurphy</dc:creator>
    <dc:date>2010-09-18T02:57:31Z</dc:date>
    <item>
      <title>Which is better NOT  or !=</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Which-is-better-NOT-or/m-p/53422#M12993</link>
      <description>&lt;P&gt;Here are two searches that are the same.&lt;/P&gt;

&lt;P&gt;NOT FIELD="value"&lt;/P&gt;

&lt;P&gt;FIELD!="value"&lt;/P&gt;

&lt;P&gt;Which should be used? Is this just a personal preference or are there any performance differences between the two.&lt;/P&gt;

&lt;P&gt;There are lots of cases where the NOT prefixes a much more complex search, but I'm just wondering about this simple case.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Sep 2010 02:57:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Which-is-better-NOT-or/m-p/53422#M12993</guid>
      <dc:creator>skeetermurphy</dc:creator>
      <dc:date>2010-09-18T02:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Which is better NOT  or !=</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Which-is-better-NOT-or/m-p/53423#M12994</link>
      <description>&lt;P&gt;These two searches are &lt;EM&gt;not&lt;/EM&gt; the same.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;NOT field="value"&lt;/CODE&gt; will return events where &lt;CODE&gt;field&lt;/CODE&gt; is undefined (or null). &lt;CODE&gt;field!="value"&lt;/CODE&gt; will only return events where &lt;CODE&gt;field&lt;/CODE&gt; exists (and does not have the value "&lt;CODE&gt;value&lt;/CODE&gt;").&lt;/P&gt;

&lt;P&gt;In the case where the value in question is "&lt;CODE&gt;*&lt;/CODE&gt;", &lt;CODE&gt;NOT field=*&lt;/CODE&gt; will return events where &lt;CODE&gt;field&lt;/CODE&gt; is null/undefined. &lt;CODE&gt;field!=*&lt;/CODE&gt; will never return any events.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Sep 2010 04:11:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Which-is-better-NOT-or/m-p/53423#M12994</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-09-18T04:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Which is better NOT  or !=</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Which-is-better-NOT-or/m-p/53424#M12995</link>
      <description>&lt;P&gt;These searches are &lt;EM&gt;not&lt;/EM&gt; the same. See below.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Sep 2010 04:12:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Which-is-better-NOT-or/m-p/53424#M12995</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-09-18T04:12:57Z</dc:date>
    </item>
  </channel>
</rss>

