<?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: Boolean query to exclude value in Filter Lookup in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Boolean-query-to-exclude-value-in-Filter-Lookup/m-p/671435#M230106</link>
    <description>&lt;P&gt;You could do something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup knownusers.csv
| where NOT user IN ("root", "mail", "apache")&lt;/LI-CODE&gt;&lt;P&gt;Although this might not be classed a filtering using a lookup.&lt;/P&gt;&lt;P&gt;Assuming you have a user field in your events, you could filter them like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| lookup knownusers.csv user OUTPUT user AS found_user
| where isnull(found_user)&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 11 Dec 2023 12:52:53 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-12-11T12:52:53Z</dc:date>
    <item>
      <title>Boolean query to exclude value in Filter Lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Boolean-query-to-exclude-value-in-Filter-Lookup/m-p/671433#M230105</link>
      <description>&lt;P&gt;Hi, I am new at Splunk and I'm following the lab in&amp;nbsp;Enriching Data with Lookups,&amp;nbsp;where I'm requested to exclude a value using the Flter Lookup. I have a Lookup definition based on knonwusers.csv&lt;/P&gt;&lt;P&gt;In the video it doesn't explain or show any example for this specific field. I have tried the following:&lt;BR /&gt;&lt;BR /&gt;user NOT&amp;nbsp;(root OR mail OR apache)&lt;BR /&gt;user &amp;lt;&amp;gt;&amp;nbsp;(root OR mail OR apache)&lt;BR /&gt;|inputlookup knownusers.csv |eval user NOT (root OR mail OR apache)&lt;/P&gt;&lt;P&gt;And nothing is working. Could you please tell me what am I doing wrong?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 12:06:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Boolean-query-to-exclude-value-in-Filter-Lookup/m-p/671433#M230105</guid>
      <dc:creator>mojoes</dc:creator>
      <dc:date>2023-12-11T12:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Boolean query to exclude value in Filter Lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Boolean-query-to-exclude-value-in-Filter-Lookup/m-p/671435#M230106</link>
      <description>&lt;P&gt;You could do something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup knownusers.csv
| where NOT user IN ("root", "mail", "apache")&lt;/LI-CODE&gt;&lt;P&gt;Although this might not be classed a filtering using a lookup.&lt;/P&gt;&lt;P&gt;Assuming you have a user field in your events, you could filter them like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| lookup knownusers.csv user OUTPUT user AS found_user
| where isnull(found_user)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 11 Dec 2023 12:52:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Boolean-query-to-exclude-value-in-Filter-Lookup/m-p/671435#M230106</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-12-11T12:52:53Z</dc:date>
    </item>
  </channel>
</rss>

