<?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: Filtering on keywords with exceptions in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-on-keywords-with-exceptions/m-p/318512#M59529</link>
    <description>&lt;P&gt;Try this &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=data_log AND (response!="*dog*" OR response="no dog")&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 25 May 2017 18:11:28 GMT</pubDate>
    <dc:creator>skoelpin</dc:creator>
    <dc:date>2017-05-25T18:11:28Z</dc:date>
    <item>
      <title>Filtering on keywords with exceptions</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-on-keywords-with-exceptions/m-p/318511#M59528</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
  I am trying to figure out if there is an easy way to filter based on a word and its negative-form.&lt;/P&gt;

&lt;P&gt;For example, I want to filter for all data that does NOT include "&lt;EM&gt;dog&lt;/EM&gt;"  , &lt;EM&gt;BUT&lt;/EM&gt; if there is a response with "no dog", then I want to capture that data as well.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=data_log AND response!="*dog*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any ideas on this?&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 18:07:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-on-keywords-with-exceptions/m-p/318511#M59528</guid>
      <dc:creator>nidhsha2</dc:creator>
      <dc:date>2017-05-25T18:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on keywords with exceptions</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-on-keywords-with-exceptions/m-p/318512#M59529</link>
      <description>&lt;P&gt;Try this &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=data_log AND (response!="*dog*" OR response="no dog")&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 18:11:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-on-keywords-with-exceptions/m-p/318512#M59529</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2017-05-25T18:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on keywords with exceptions</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-on-keywords-with-exceptions/m-p/318513#M59530</link>
      <description>&lt;P&gt;Unfortunately I did try that, and my response of "no dog" is still not included.  I think the != &lt;EM&gt;dog&lt;/EM&gt; takes precedence over my next OR statement?&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 18:26:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-on-keywords-with-exceptions/m-p/318513#M59530</guid>
      <dc:creator>nidhsha2</dc:creator>
      <dc:date>2017-05-25T18:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on keywords with exceptions</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-on-keywords-with-exceptions/m-p/318514#M59531</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=data_log AND (response!="*dog*" OR response="*no dog*")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 May 2017 19:12:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-on-keywords-with-exceptions/m-p/318514#M59531</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-25T19:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on keywords with exceptions</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-on-keywords-with-exceptions/m-p/318515#M59532</link>
      <description>&lt;P&gt;Did the trick, thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 19:14:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-on-keywords-with-exceptions/m-p/318515#M59532</guid>
      <dc:creator>nidhsha2</dc:creator>
      <dc:date>2017-05-25T19:14:33Z</dc:date>
    </item>
  </channel>
</rss>

