<?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 Finding ip's not in a inputlookup in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Finding-ip-s-not-in-a-inputlookup/m-p/508121#M142002</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I appreciate that there are tons of answers on this but I am having issues getting it to work!&lt;/P&gt;&lt;P&gt;I have a csv named known-ip-addresses.csv it contains the same fields as those in the indexed data eventName, src, "user.Identity.arn" in exactly the same case and separated. The inputlookup works ok and I can search against values. I have &lt;STRONG&gt;not&lt;/STRONG&gt; created a lookup definition&lt;/P&gt;&lt;P&gt;In the indexed data we have a sourcetype with the same fields, I am trying to find any ip's (src field) that are not in the inputlookup.&lt;/P&gt;&lt;P&gt;sourcetype=aws:cloudtrail eventName=ConsoleLogin NOT [inputlookup known-ip-addresses.csv | fields&amp;nbsp;eventName, src, "user.Identity.arn" ]&lt;/P&gt;&lt;P&gt;The result is that I am getting a mix of addresses that are in the csv as well as those that are not.&lt;/P&gt;&lt;P&gt;Can anyone point me in the right direction?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jul 2020 15:01:08 GMT</pubDate>
    <dc:creator>realtimetechnol</dc:creator>
    <dc:date>2020-07-08T15:01:08Z</dc:date>
    <item>
      <title>Finding ip's not in a inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-ip-s-not-in-a-inputlookup/m-p/508121#M142002</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I appreciate that there are tons of answers on this but I am having issues getting it to work!&lt;/P&gt;&lt;P&gt;I have a csv named known-ip-addresses.csv it contains the same fields as those in the indexed data eventName, src, "user.Identity.arn" in exactly the same case and separated. The inputlookup works ok and I can search against values. I have &lt;STRONG&gt;not&lt;/STRONG&gt; created a lookup definition&lt;/P&gt;&lt;P&gt;In the indexed data we have a sourcetype with the same fields, I am trying to find any ip's (src field) that are not in the inputlookup.&lt;/P&gt;&lt;P&gt;sourcetype=aws:cloudtrail eventName=ConsoleLogin NOT [inputlookup known-ip-addresses.csv | fields&amp;nbsp;eventName, src, "user.Identity.arn" ]&lt;/P&gt;&lt;P&gt;The result is that I am getting a mix of addresses that are in the csv as well as those that are not.&lt;/P&gt;&lt;P&gt;Can anyone point me in the right direction?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 15:01:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-ip-s-not-in-a-inputlookup/m-p/508121#M142002</guid>
      <dc:creator>realtimetechnol</dc:creator>
      <dc:date>2020-07-08T15:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Finding ip's not in a inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-ip-s-not-in-a-inputlookup/m-p/508147#M142004</link>
      <description>&lt;P&gt;Run this search&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;inputlookup known-ip-addresses.csv 
| fields eventName, src, "user.Identity.arn" 
| format&lt;/LI-CODE&gt;&lt;P&gt;to see what is being returned from the subsearch.&amp;nbsp; Tweak the subsearch, and perhaps also the options to &lt;FONT face="courier new,courier"&gt;format&lt;/FONT&gt;, to get results that match your index.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 16:42:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-ip-s-not-in-a-inputlookup/m-p/508147#M142004</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-08T16:42:05Z</dc:date>
    </item>
  </channel>
</rss>

