<?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: module to check for multiple IP addresses... in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/module-to-check-for-multiple-IP-addresses/m-p/62993#M860</link>
    <description>&lt;P&gt;Hello Lee,&lt;/P&gt;

&lt;P&gt;If you have the IP addresses in a CSV (or just a header with one IP on each line), you can use a lookup to accomplish this. So, let's say you have a list of TOR nodes in a lookup named torexitnodes.csv, with contents like this:&lt;/P&gt;

&lt;P&gt;ipaddress&lt;/P&gt;

&lt;P&gt;1.1.1.1&lt;/P&gt;

&lt;P&gt;2.2.2.2&lt;/P&gt;

&lt;P&gt;3.3.3.3&lt;/P&gt;

&lt;P&gt;Then you can use a search like this to check for hits against that lookup:&lt;BR /&gt;
sourcetype=firewall [|inputlookup torexitnodes.csv | fields ipaddress | rename ipaddress as dest_ip]&lt;/P&gt;

&lt;P&gt;Some sources:&lt;BR /&gt;
&lt;A href="http://blogs.splunk.com/2011/08/16/getwatchlist-getting-watchlists-into-splunk-quickly-and-easily-with-a-splunk-custom-search-command/"&gt;http://blogs.splunk.com/2011/08/16/getwatchlist-getting-watchlists-into-splunk-quickly-and-easily-with-a-splunk-custom-search-command/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/admin/transformsconf"&gt;http://docs.splunk.com/Documentation/Splunk/latest/admin/transformsconf&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 May 2012 22:56:40 GMT</pubDate>
    <dc:creator>dshpritz</dc:creator>
    <dc:date>2012-05-29T22:56:40Z</dc:date>
    <item>
      <title>module to check for multiple IP addresses...</title>
      <link>https://community.splunk.com/t5/Alerting/module-to-check-for-multiple-IP-addresses/m-p/62992#M859</link>
      <description>&lt;P&gt;Y'all;&lt;/P&gt;

&lt;P&gt;I need to [ find | build ] a module that will return real-time status of hits on a rather large number of IP addresses. I am trying to check for all of the currently registered exit nodes from the TOR network. The number could range from nearly 1,000 to over 2,000 addresses.&lt;/P&gt;

&lt;P&gt;I already have a process that will build a text file with the IP addresses in a sorted file. Now I'm looking for a module (or any other solution) that will watch the log files to see who is connecting from one of those addresses, and give me a real-time alert when it occurs.&lt;/P&gt;

&lt;P&gt;Baring that, can anyone point me to a working shell for a module that I might be able to change to accomplish this. I have loads of programming experience, but 3 days of dealing with Splunk.&lt;/P&gt;

&lt;P&gt;Thanks muchly,&lt;/P&gt;

&lt;P&gt;Lee&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2012 22:15:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/module-to-check-for-multiple-IP-addresses/m-p/62992#M859</guid>
      <dc:creator>lcrites</dc:creator>
      <dc:date>2012-05-29T22:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: module to check for multiple IP addresses...</title>
      <link>https://community.splunk.com/t5/Alerting/module-to-check-for-multiple-IP-addresses/m-p/62993#M860</link>
      <description>&lt;P&gt;Hello Lee,&lt;/P&gt;

&lt;P&gt;If you have the IP addresses in a CSV (or just a header with one IP on each line), you can use a lookup to accomplish this. So, let's say you have a list of TOR nodes in a lookup named torexitnodes.csv, with contents like this:&lt;/P&gt;

&lt;P&gt;ipaddress&lt;/P&gt;

&lt;P&gt;1.1.1.1&lt;/P&gt;

&lt;P&gt;2.2.2.2&lt;/P&gt;

&lt;P&gt;3.3.3.3&lt;/P&gt;

&lt;P&gt;Then you can use a search like this to check for hits against that lookup:&lt;BR /&gt;
sourcetype=firewall [|inputlookup torexitnodes.csv | fields ipaddress | rename ipaddress as dest_ip]&lt;/P&gt;

&lt;P&gt;Some sources:&lt;BR /&gt;
&lt;A href="http://blogs.splunk.com/2011/08/16/getwatchlist-getting-watchlists-into-splunk-quickly-and-easily-with-a-splunk-custom-search-command/"&gt;http://blogs.splunk.com/2011/08/16/getwatchlist-getting-watchlists-into-splunk-quickly-and-easily-with-a-splunk-custom-search-command/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/admin/transformsconf"&gt;http://docs.splunk.com/Documentation/Splunk/latest/admin/transformsconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2012 22:56:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/module-to-check-for-multiple-IP-addresses/m-p/62993#M860</guid>
      <dc:creator>dshpritz</dc:creator>
      <dc:date>2012-05-29T22:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: module to check for multiple IP addresses...</title>
      <link>https://community.splunk.com/t5/Alerting/module-to-check-for-multiple-IP-addresses/m-p/62994#M861</link>
      <description>&lt;P&gt;Coolness! Thanks for the head's up. I'm working on my first module(s). I thought this one might be the most difficult, but if the code above is what I think it is, then it might be one of the easier ones.&lt;/P&gt;

&lt;P&gt;Thanks muchly!!!&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2012 18:41:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/module-to-check-for-multiple-IP-addresses/m-p/62994#M861</guid>
      <dc:creator>lcrites</dc:creator>
      <dc:date>2012-05-30T18:41:05Z</dc:date>
    </item>
  </channel>
</rss>

