<?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 How to match on value NOT in lookup table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-on-value-NOT-in-lookup-table/m-p/581050#M202433</link>
    <description>&lt;P&gt;I have a list of IP addresses in a lookup table that are network scanners.&lt;/P&gt;&lt;P&gt;I am trying to build a search that excludes the IP addresses in this lookup table, but for some reason my search keeps including IP address values that are clearly present in the lookup.&amp;nbsp; I tried putting the quotes around the IP addresses ("1.2.3.4"), tried without quotes (1.2.3.4) but nothing works.&amp;nbsp; The raw data does not have quotes.&amp;nbsp; After having tried enough&amp;nbsp; combinations, I am hoping someone can help me.&amp;nbsp; Eventually, I'll be adding the remaining IP's to the lookup table via OUTPUTLOOKUP append=true but until I can get this working... I'm stuck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=foo sourcetype=bar NOT 
    [| inputlookup network_scanners
    | table IpAddress] 
| dedup IpAddress 
| table IpAddress&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jan 2022 08:15:14 GMT</pubDate>
    <dc:creator>DEADBEEF</dc:creator>
    <dc:date>2022-01-14T08:15:14Z</dc:date>
    <item>
      <title>How to match on value NOT in lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-on-value-NOT-in-lookup-table/m-p/581050#M202433</link>
      <description>&lt;P&gt;I have a list of IP addresses in a lookup table that are network scanners.&lt;/P&gt;&lt;P&gt;I am trying to build a search that excludes the IP addresses in this lookup table, but for some reason my search keeps including IP address values that are clearly present in the lookup.&amp;nbsp; I tried putting the quotes around the IP addresses ("1.2.3.4"), tried without quotes (1.2.3.4) but nothing works.&amp;nbsp; The raw data does not have quotes.&amp;nbsp; After having tried enough&amp;nbsp; combinations, I am hoping someone can help me.&amp;nbsp; Eventually, I'll be adding the remaining IP's to the lookup table via OUTPUTLOOKUP append=true but until I can get this working... I'm stuck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=foo sourcetype=bar NOT 
    [| inputlookup network_scanners
    | table IpAddress] 
| dedup IpAddress 
| table IpAddress&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 08:15:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-match-on-value-NOT-in-lookup-table/m-p/581050#M202433</guid>
      <dc:creator>DEADBEEF</dc:creator>
      <dc:date>2022-01-14T08:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to match on value NOT in lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-on-value-NOT-in-lookup-table/m-p/581052#M202434</link>
      <description>&lt;P&gt;Have you tried format?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=foo sourcetype=bar NOT 
    [| inputlookup network_scanners
    | table IpAddress
    | format] 
| dedup IpAddress 
| table IpAddress&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 14 Jan 2022 08:20:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-match-on-value-NOT-in-lookup-table/m-p/581052#M202434</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-01-14T08:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to match on value NOT in lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-on-value-NOT-in-lookup-table/m-p/581059#M202435</link>
      <description>&lt;P&gt;That was the fix!&amp;nbsp; What about the format command resolved this?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 08:51:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-match-on-value-NOT-in-lookup-table/m-p/581059#M202435</guid>
      <dc:creator>DEADBEEF</dc:creator>
      <dc:date>2022-01-14T08:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to match on value NOT in lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-on-value-NOT-in-lookup-table/m-p/581066#M202436</link>
      <description>&lt;P&gt;It formats the events returned by the inputlookup into a string like&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;((IpAddress="1.1.1.1") OR (IpAddress="2.2.2.2"))&lt;/LI-CODE&gt;&lt;P&gt;so it can be used as part of the (initial) search&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 09:51:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-match-on-value-NOT-in-lookup-table/m-p/581066#M202436</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-01-14T09:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to match on value NOT in lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-on-value-NOT-in-lookup-table/m-p/581113#M202448</link>
      <description>&lt;P&gt;Ahh okay.&amp;nbsp; Is this because the IP address has minor breakers so if you don't use format then it doesn't work as expected?&amp;nbsp; Just curious as I never had to use it before (but was never matching against IP's).&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 15:16:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-match-on-value-NOT-in-lookup-table/m-p/581113#M202448</guid>
      <dc:creator>DEADBEEF</dc:creator>
      <dc:date>2022-01-14T15:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to match on value NOT in lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-on-value-NOT-in-lookup-table/m-p/581122#M202450</link>
      <description>&lt;P&gt;Essentially, yes. As I understand it, splunk will sometimes break things up by punctuation so 1.1.1.1 it treated as up to 4 separate strings.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 16:00:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-match-on-value-NOT-in-lookup-table/m-p/581122#M202450</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-01-14T16:00:59Z</dc:date>
    </item>
  </channel>
</rss>

