<?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: Using &amp;quot;NOT&amp;quot; in splunk ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-quot-NOT-quot-in-splunk/m-p/28523#M177828</link>
    <description>&lt;P&gt;The way you've placed your double quotes doesn't treat AND as a keyword; it's looking for an entire string reading literally "messageName1 AND nullpointer1", which doesn't seem to appear in your data as such. Place quotes around individual words, like &lt;CODE&gt;NOT ("messageName1" AND "nullpointer1")&lt;/CODE&gt;.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Feb 2013 06:44:19 GMT</pubDate>
    <dc:creator>sowings</dc:creator>
    <dc:date>2013-02-13T06:44:19Z</dc:date>
    <item>
      <title>Using "NOT" in splunk ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-quot-NOT-quot-in-splunk/m-p/28520#M177825</link>
      <description>&lt;P&gt;How to use the NOT operator for combination of two words.&lt;/P&gt;

&lt;P&gt;In my log I need to eliminate the errors by considering the combination of the words.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"2013.02.12-03:11:40.818(PST)|sessionid1----|messageid1|clientid1|messageName1|severname1:instance1|exception1 : nullpointer1 exception in the request"
2013.02.12-03:11:40.819(PST)|sessionid2----|messageid2|clientid2|messageName2|severname2:instance2|exception2 : nullpointer2 exception in the request"
2013.02.12-03:11:40.818(PST)|sessionid----|messageid|clientid|messageName|severname:instance|exception : nullpointer exception in the request"
2013.02.12-03:11:40.830(PST)|sessionid3----|messageid3|clientid3|messageName3|severname3:instance3|exception3 : nullpointer3 exception in the request"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I need to eliminate the logs statements which comes with nullpointers and the messageNames&lt;/P&gt;

&lt;P&gt;I have written the query as: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="error_log" host=severname NOT ("messageName1 AND nullpointer1") OR NOT ("messageName2 AND nullpointer2") OR NOT ("messageName3 AND nullpointer3")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;if i use this query in splunk, sometime i am able to view the logs which i need to eliminate.&lt;BR /&gt;
Could you please anyone help me is there any wrong in my query, please let em know the best optimisation.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2013 11:18:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-quot-NOT-quot-in-splunk/m-p/28520#M177825</guid>
      <dc:creator>mkumarpisl</dc:creator>
      <dc:date>2013-02-12T11:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using "NOT" in splunk ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-quot-NOT-quot-in-splunk/m-p/28521#M177826</link>
      <description>&lt;P&gt;Isn't a simple&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="error_log" host=servername NOT nullpointer* 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;what you're looking for?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2013 13:20:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-quot-NOT-quot-in-splunk/m-p/28521#M177826</guid>
      <dc:creator>stefano_guidoba</dc:creator>
      <dc:date>2013-02-12T13:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using "NOT" in splunk ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-quot-NOT-quot-in-splunk/m-p/28522#M177827</link>
      <description>&lt;P&gt;I want to eliminate the lines with combination of "messageName1 and nullpointer1". So i have wrritten as query as NOT ("messageName1 AND nullpointer1").&lt;/P&gt;

&lt;P&gt;if the line contains both the words, it should not be displayed. But when i am writting this query i am able to see the lines with the combination of these words.&lt;/P&gt;

&lt;P&gt;Could you please advice me to write a correct query.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2013 05:48:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-quot-NOT-quot-in-splunk/m-p/28522#M177827</guid>
      <dc:creator>mkumarpisl</dc:creator>
      <dc:date>2013-02-13T05:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using "NOT" in splunk ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-quot-NOT-quot-in-splunk/m-p/28523#M177828</link>
      <description>&lt;P&gt;The way you've placed your double quotes doesn't treat AND as a keyword; it's looking for an entire string reading literally "messageName1 AND nullpointer1", which doesn't seem to appear in your data as such. Place quotes around individual words, like &lt;CODE&gt;NOT ("messageName1" AND "nullpointer1")&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2013 06:44:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-quot-NOT-quot-in-splunk/m-p/28523#M177828</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2013-02-13T06:44:19Z</dc:date>
    </item>
  </channel>
</rss>

