<?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 Exclude Events Based on a Lookup in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Exclude-Events-Based-on-a-Lookup/m-p/30901#M6336</link>
    <description>&lt;P&gt;I've written a query to find certain events in Splunk and I want to exclude any which match up with a set of values in a CSV lookup. For example for this query:&lt;/P&gt;

&lt;P&gt;Type!=Information (*Example1* OR *Example2* OR "*Example with spaces*") earliest=-4h latest=-1m&lt;/P&gt;

&lt;P&gt;And I've a CSV with the following values&lt;/P&gt;

&lt;P&gt;ExcludeText&lt;BR /&gt;&lt;BR /&gt;
Test1&lt;BR /&gt;&lt;BR /&gt;
Test2&lt;BR /&gt;
Test3&lt;/P&gt;

&lt;P&gt;I want to exclude any events which contain the text in the CSV file. I've tried this but it doesn't filter them out:&lt;/P&gt;

&lt;P&gt;Type!=Information (*\Example1* OR *Example2* OR "*Example with spaces*") earliest=-4h latest=-1m&lt;BR /&gt;
 [| inputlookup exclude_csv | fields ExcludeText]&lt;/P&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;</description>
    <pubDate>Wed, 13 Feb 2013 17:08:39 GMT</pubDate>
    <dc:creator>paddy3883</dc:creator>
    <dc:date>2013-02-13T17:08:39Z</dc:date>
    <item>
      <title>Exclude Events Based on a Lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Exclude-Events-Based-on-a-Lookup/m-p/30901#M6336</link>
      <description>&lt;P&gt;I've written a query to find certain events in Splunk and I want to exclude any which match up with a set of values in a CSV lookup. For example for this query:&lt;/P&gt;

&lt;P&gt;Type!=Information (*Example1* OR *Example2* OR "*Example with spaces*") earliest=-4h latest=-1m&lt;/P&gt;

&lt;P&gt;And I've a CSV with the following values&lt;/P&gt;

&lt;P&gt;ExcludeText&lt;BR /&gt;&lt;BR /&gt;
Test1&lt;BR /&gt;&lt;BR /&gt;
Test2&lt;BR /&gt;
Test3&lt;/P&gt;

&lt;P&gt;I want to exclude any events which contain the text in the CSV file. I've tried this but it doesn't filter them out:&lt;/P&gt;

&lt;P&gt;Type!=Information (*\Example1* OR *Example2* OR "*Example with spaces*") earliest=-4h latest=-1m&lt;BR /&gt;
 [| inputlookup exclude_csv | fields ExcludeText]&lt;/P&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2013 17:08:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Exclude-Events-Based-on-a-Lookup/m-p/30901#M6336</guid>
      <dc:creator>paddy3883</dc:creator>
      <dc:date>2013-02-13T17:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude Events Based on a Lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Exclude-Events-Based-on-a-Lookup/m-p/30902#M6337</link>
      <description>&lt;P&gt;When I do this I just something like:&lt;/P&gt;

&lt;P&gt;host=* "string" NOT ([|inputlookup stuff.csv | fields &lt;FIELD you="" want="" to="" exclude=""&gt;] )| &lt;/FIELD&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2013 19:50:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Exclude-Events-Based-on-a-Lookup/m-p/30902#M6337</guid>
      <dc:creator>Kate_Lawrence-G</dc:creator>
      <dc:date>2013-02-13T19:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude Events Based on a Lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Exclude-Events-Based-on-a-Lookup/m-p/30903#M6338</link>
      <description>&lt;P&gt;I managed to get this working with this subsearch string&lt;/P&gt;

&lt;P&gt;host=EXAMPLE earliest=-3h latest=-1h[ | inputlookup example_exclude| eval search="Message!=\""+ErrorText+"\"" | fields search ] &lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2013 08:51:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Exclude-Events-Based-on-a-Lookup/m-p/30903#M6338</guid>
      <dc:creator>paddy3883</dc:creator>
      <dc:date>2013-02-19T08:51:49Z</dc:date>
    </item>
  </channel>
</rss>

