<?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: Check if IP address from search not in list of IP address in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Check-if-IP-address-from-search-not-in-list-of-IP-address/m-p/469182#M132048</link>
    <description>&lt;P&gt;&lt;CODE&gt;index=myindex src_ip NOT [inputlookup all_ip.csv]&lt;/CODE&gt;&lt;BR /&gt;
Assuming the field is named src_ip in the CSV as well. If it's not, you can rename the field by using a &lt;CODE&gt;| rename&lt;/CODE&gt; after the inputlookup&lt;/P&gt;</description>
    <pubDate>Thu, 29 Aug 2019 19:28:24 GMT</pubDate>
    <dc:creator>masonmorales</dc:creator>
    <dc:date>2019-08-29T19:28:24Z</dc:date>
    <item>
      <title>Check if IP address from search not in list of IP address</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Check-if-IP-address-from-search-not-in-list-of-IP-address/m-p/469181#M132047</link>
      <description>&lt;P&gt;I am still learning Splunk and trying to understand best way to find if IP addresses in my search results are NOT in a list of IP addresses I have like below :&lt;BR /&gt;
10.34*&lt;BR /&gt;
10.35*&lt;BR /&gt;
172.20*&lt;BR /&gt;
172.21*&lt;BR /&gt;
172.168*&lt;/P&gt;

&lt;P&gt;I put * in the CSV list  to cover all IP addresses. for example ..10.34.1.3 is covered by 10.34. 172.212.1.1 is covered by 172.21* etc.&lt;BR /&gt;
I upload the CSV in the "Lookup table files" as "all_ip.csv"&lt;/P&gt;

&lt;P&gt;This is what I started with. How can I make sure "src_ip" is NOT in the list "ip.csv"?&lt;BR /&gt;
index=myindex src_ip | inputlookup all_ip.csv&lt;/P&gt;

&lt;P&gt;Thanks for all the help.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:00:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Check-if-IP-address-from-search-not-in-list-of-IP-address/m-p/469181#M132047</guid>
      <dc:creator>ashishmgupta</dc:creator>
      <dc:date>2020-09-30T02:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Check if IP address from search not in list of IP address</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Check-if-IP-address-from-search-not-in-list-of-IP-address/m-p/469182#M132048</link>
      <description>&lt;P&gt;&lt;CODE&gt;index=myindex src_ip NOT [inputlookup all_ip.csv]&lt;/CODE&gt;&lt;BR /&gt;
Assuming the field is named src_ip in the CSV as well. If it's not, you can rename the field by using a &lt;CODE&gt;| rename&lt;/CODE&gt; after the inputlookup&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 19:28:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Check-if-IP-address-from-search-not-in-list-of-IP-address/m-p/469182#M132048</guid>
      <dc:creator>masonmorales</dc:creator>
      <dc:date>2019-08-29T19:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Check if IP address from search not in list of IP address</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Check-if-IP-address-from-search-not-in-list-of-IP-address/m-p/469183#M132049</link>
      <description>&lt;P&gt;And make sure the lookup definiton will do CIDR matches&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 21:02:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Check-if-IP-address-from-search-not-in-list-of-IP-address/m-p/469183#M132049</guid>
      <dc:creator>wmyersas</dc:creator>
      <dc:date>2019-08-29T21:02:36Z</dc:date>
    </item>
  </channel>
</rss>

