<?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 IP Watchlist Lookup in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/IP-Watchlist-Lookup/m-p/480081#M134559</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I currently have a search against our firewalls, below is the current search.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=(my index) sourcetype="my_source" ipsrcip!=(ip)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have a lookup file called 'threatip' that contains a list of source IP's in the first column named 'ip'.  I would like to create a search that presents events from the initial search where the source IP from the lookup matches the source IP in the firewall logs. &lt;/P&gt;

&lt;P&gt;Firewall log fields - &lt;/P&gt;

&lt;P&gt;Source IP - 'srcip'&lt;/P&gt;

&lt;P&gt;Lookup Table Fields - &lt;/P&gt;

&lt;P&gt;Source IP - 'ip'&lt;/P&gt;

&lt;P&gt;It seems so simple yet I am having some issues with it, advice would be much appreciated. &lt;/P&gt;

&lt;P&gt;Thank you,&lt;BR /&gt;
Nick. &lt;/P&gt;</description>
    <pubDate>Fri, 08 Nov 2019 13:54:43 GMT</pubDate>
    <dc:creator>nlisle</dc:creator>
    <dc:date>2019-11-08T13:54:43Z</dc:date>
    <item>
      <title>IP Watchlist Lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/IP-Watchlist-Lookup/m-p/480081#M134559</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I currently have a search against our firewalls, below is the current search.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=(my index) sourcetype="my_source" ipsrcip!=(ip)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have a lookup file called 'threatip' that contains a list of source IP's in the first column named 'ip'.  I would like to create a search that presents events from the initial search where the source IP from the lookup matches the source IP in the firewall logs. &lt;/P&gt;

&lt;P&gt;Firewall log fields - &lt;/P&gt;

&lt;P&gt;Source IP - 'srcip'&lt;/P&gt;

&lt;P&gt;Lookup Table Fields - &lt;/P&gt;

&lt;P&gt;Source IP - 'ip'&lt;/P&gt;

&lt;P&gt;It seems so simple yet I am having some issues with it, advice would be much appreciated. &lt;/P&gt;

&lt;P&gt;Thank you,&lt;BR /&gt;
Nick. &lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 13:54:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/IP-Watchlist-Lookup/m-p/480081#M134559</guid>
      <dc:creator>nlisle</dc:creator>
      <dc:date>2019-11-08T13:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: IP Watchlist Lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/IP-Watchlist-Lookup/m-p/480082#M134560</link>
      <description>&lt;P&gt;Hi nlisle,&lt;BR /&gt;
please try something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=my index sourcetype="my_source" [ | inputlookup threatip | rename ip AS srcip | fields srcip ]
| ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 13:59:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/IP-Watchlist-Lookup/m-p/480082#M134560</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-11-08T13:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: IP Watchlist Lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/IP-Watchlist-Lookup/m-p/480083#M134561</link>
      <description>&lt;P&gt;Hi Giuseppe, I have tried this search however I receive no results. I can confirm that I have already added some data into the lookup, IP's that have hit the firewall in the past 30 days. I am also running my search over the last 30 days. Thanks. &lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 14:23:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/IP-Watchlist-Lookup/m-p/480083#M134561</guid>
      <dc:creator>nlisle</dc:creator>
      <dc:date>2019-11-08T14:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: IP Watchlist Lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/IP-Watchlist-Lookup/m-p/480084#M134562</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="myIndex" AND sourcetype="my_source" AND ipsrcip!=(ip) AND [|inputlookup MyLookupFile.csv | rename ip as srcip | table srcip]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="myIndex" AND sourcetype="my_source" AND ipsrcip!=(ip)
| lookup MyLookupFile.csv ip AS srcip OUTPUT ip AS MATCHED
| where isnotnull(MATCHED)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Nov 2019 19:52:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/IP-Watchlist-Lookup/m-p/480084#M134562</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-08T19:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: IP Watchlist Lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/IP-Watchlist-Lookup/m-p/480085#M134563</link>
      <description>&lt;P&gt;Try this&lt;BR /&gt;
&lt;CODE&gt;index=(my index) sourcetype="my_source" |search [|inputlookup threatip.csv | fields ip |rename ip as srcip]&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 15:02:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/IP-Watchlist-Lookup/m-p/480085#M134563</guid>
      <dc:creator>jbillings</dc:creator>
      <dc:date>2020-02-11T15:02:45Z</dc:date>
    </item>
  </channel>
</rss>

