logstash-filter-ip2proxy 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/LICENSE +1 -1
- data/README.md +10 -5
- data/lib/logstash-filter-ip2proxy_jars.rb +2 -2
- data/lib/logstash/filters/ip2proxy.rb +1 -1
- data/logstash-filter-ip2proxy.gemspec +2 -2
- data/spec/filters/ip2proxy_spec.rb +1 -1
- data/vendor/{IP2PROXY-LITE-PX4.BIN → IP2PROXY-LITE-PX8.BIN} +0 -0
- data/vendor/jar-dependencies/com/ip2proxy/ip2proxy/ip2proxy/2.0.0/ip2proxy-2.0.0.jar +0 -0
- data/vendor/jar-dependencies/org/logstash/filters/logstash-filter-ip2proxy/1.1.0/logstash-filter-ip2proxy-1.1.0.jar +0 -0
- metadata +9 -9
- data/vendor/jar-dependencies/com/ip2proxy/ip2proxy/ip2proxy/1.0.1/ip2proxy-1.0.1.jar +0 -0
- data/vendor/jar-dependencies/org/logstash/filters/logstash-filter-ip2proxy/1.0.0/logstash-filter-ip2proxy-1.0.0.jar +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d65931f469472209ce9a23de1dc4ce5556d760fb3e32f63a7bd7410a3f850184
|
4
|
+
data.tar.gz: 328216e02719878362997bdee6799a651082f6712797316e739a2bea1dd5fb25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c9bbd7e388f1bc6aacf43056a978ee0827f74b65870e7e92a1b8e242649f39039deaaaf78c6a1122ee0ca05f4754e12e6de835c9e8af0139b0aaefd932fa7af
|
7
|
+
data.tar.gz: f00bdaba4033e849556b2482d397f40fa1f5fa30f757f2fa226dad2a400ced784acc67022f1ff7726698a26d249f20275ef34c71f8cc913abf76b93337089b66
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# IP2Proxy Filter Plugin
|
2
|
-
This is IP2Proxy filter plugin for Logstash that enables Logstash's users to
|
2
|
+
This is IP2Proxy filter plugin for Logstash that enables Logstash's users to reverse search of IP address to detect VPN servers, open proxies, web proxies, Tor exit nodes, search engine robots and data center ranges using IP2Proxy BIN database. Other information available includes proxy type, country, state, city, ISP, domain name, usage type, AS number, AS name and last seen date. The library took the proxy IP address from **IP2Proxy BIN Data** file.
|
3
3
|
|
4
|
-
For the methods to use IP2Proxy filter plugin with Elastic Stack (Elasticsearch, Filebeat, Logstash, and Kibana), please take a look on this [tutorial](https://
|
4
|
+
For the methods to use IP2Proxy filter plugin with Elastic Stack (Elasticsearch, Filebeat, Logstash, and Kibana), please take a look on this [tutorial](https://blog.ip2location.com/knowledge-base/how-to-use-ip2proxy-filter-plugin-with-elastic-stack).
|
5
5
|
|
6
6
|
|
7
7
|
## Dependencies (IP2PROXY BIN DATA FILE)
|
@@ -55,15 +55,20 @@ output {
|
|
55
55
|
## Sample Output
|
56
56
|
|Field|Description|
|
57
57
|
|---|---|
|
58
|
+
|ip2proxy.as|the autonomous system (AS) name of proxy's IP address or domain name|
|
59
|
+
|ip2proxy.asn|the autonomous system number (ASN) of proxy's IP address or domain name|
|
58
60
|
|ip2proxy.city|the city name of the proxy|
|
59
61
|
|ip2proxy.country_long|the ISO3166-1 country name of the proxy|
|
60
62
|
|ip2proxy.country_short|the ISO3166-1 country code (two-characters) of the proxy|
|
63
|
+
|ip2proxy.domain|the domain name of proxy's IP address or domain name|
|
61
64
|
|ip2proxy.is_proxy|Check whether if an IP address was a proxy. Returned value:<ul><li>-1 : errors</li><li>0 : not a proxy</li><li>1 : a proxy</li><li>2 : a data center IP address</li></ul>|
|
62
65
|
|ip2proxy.isp|the ISP name of the proxy|
|
63
|
-
|ip2proxy.
|
64
|
-
|ip2proxy.
|
66
|
+
|ip2proxy.last_seen|the last seen days ago value of proxy's IP address or domain name|
|
67
|
+
|ip2proxy.proxy_type|the proxy type. Please visit <a href="https://www.ip2location.com/database/px8-ip-proxytype-country-region-city-isp-domain-usagetype-asn-lastseen" target="_blank">IP2Location</a> for the list of proxy types supported|
|
68
|
+
|ip2proxy.region|the ISO3166-2 region name of the proxy. Please visit <a href="https://www.ip2location.com/free/iso3166-2" target="_blank">ISO3166-2 Subdivision Code</a> for the information of ISO3166-2 supported|
|
69
|
+
|ip2proxy.usage_type|the usage type classification of the proxy. Please visit <a href="https://www.ip2location.com/database/px8-ip-proxytype-country-region-city-isp-domain-usagetype-asn-lastseen" target="_blank">IP2Location</a> for the list of usage types supported|
|
65
70
|
|
66
|
-
![Example of data](https://www.ip2location.com/
|
71
|
+
![Example of data](https://www.ip2location.com/assets/img/logstash-filter-ip2proxy-screenshot.png)
|
67
72
|
|
68
73
|
|
69
74
|
## Support
|
@@ -1,3 +1,3 @@
|
|
1
1
|
require 'jar_dependencies'
|
2
|
-
require_jar('com.ip2proxy.ip2proxy', 'ip2proxy', '
|
3
|
-
require_jar('org.logstash.filters', 'logstash-filter-ip2proxy', '1.
|
2
|
+
require_jar('com.ip2proxy.ip2proxy', 'ip2proxy', '2.0.0')
|
3
|
+
require_jar('org.logstash.filters', 'logstash-filter-ip2proxy', '1.1.0')
|
@@ -21,7 +21,7 @@ class LogStash::Filters::IP2Proxy < LogStash::Filters::Base
|
|
21
21
|
public
|
22
22
|
def register
|
23
23
|
if @database.nil?
|
24
|
-
@database = ::Dir.glob(::File.join(::File.expand_path("../../../vendor/", ::File.dirname(__FILE__)),"IP2PROXY-LITE-
|
24
|
+
@database = ::Dir.glob(::File.join(::File.expand_path("../../../vendor/", ::File.dirname(__FILE__)),"IP2PROXY-LITE-PX8.BIN")).first
|
25
25
|
|
26
26
|
if @database.nil? || !File.exists?(@database)
|
27
27
|
raise "You must specify 'database => ...' in your ip2proxy filter (I looked for '#{@database}')"
|
@@ -1,10 +1,10 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-filter-ip2proxy'
|
4
|
-
s.version = '1.
|
4
|
+
s.version = '1.1.0'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "Logstash filter IP2Proxy"
|
7
|
-
s.description = "IP2Proxy filter plugin for Logstash enables Logstash's users to
|
7
|
+
s.description = "IP2Proxy filter plugin for Logstash enables Logstash's users to reverse search of IP address to detect VPN servers, open proxies, web proxies, Tor exit nodes, search engine robots and data center ranges using IP2Proxy BIN database."
|
8
8
|
s.authors = ["IP2Location"]
|
9
9
|
s.email = 'support@ip2location.com'
|
10
10
|
s.homepage = "https://www.ip2location.com"
|
@@ -2,7 +2,7 @@
|
|
2
2
|
require_relative '../spec_helper'
|
3
3
|
require "logstash/filters/ip2proxy"
|
4
4
|
|
5
|
-
IP2PROXYDB = ::Dir.glob(::File.expand_path("../../vendor/", ::File.dirname(__FILE__))+"/IP2PROXY-LITE-
|
5
|
+
IP2PROXYDB = ::Dir.glob(::File.expand_path("../../vendor/", ::File.dirname(__FILE__))+"/IP2PROXY-LITE-PX8.BIN").first
|
6
6
|
|
7
7
|
describe LogStash::Filters::IP2Proxy do
|
8
8
|
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-filter-ip2proxy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- IP2Location
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logstash-core-plugin-api
|
@@ -38,9 +38,9 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
-
description: IP2Proxy filter plugin for Logstash enables Logstash's users to
|
42
|
-
|
43
|
-
|
41
|
+
description: IP2Proxy filter plugin for Logstash enables Logstash's users to reverse
|
42
|
+
search of IP address to detect VPN servers, open proxies, web proxies, Tor exit
|
43
|
+
nodes, search engine robots and data center ranges using IP2Proxy BIN database.
|
44
44
|
email: support@ip2location.com
|
45
45
|
executables: []
|
46
46
|
extensions: []
|
@@ -54,9 +54,9 @@ files:
|
|
54
54
|
- logstash-filter-ip2proxy.gemspec
|
55
55
|
- spec/filters/ip2proxy_spec.rb
|
56
56
|
- spec/spec_helper.rb
|
57
|
-
- vendor/IP2PROXY-LITE-
|
58
|
-
- vendor/jar-dependencies/com/ip2proxy/ip2proxy/ip2proxy/
|
59
|
-
- vendor/jar-dependencies/org/logstash/filters/logstash-filter-ip2proxy/1.
|
57
|
+
- vendor/IP2PROXY-LITE-PX8.BIN
|
58
|
+
- vendor/jar-dependencies/com/ip2proxy/ip2proxy/ip2proxy/2.0.0/ip2proxy-2.0.0.jar
|
59
|
+
- vendor/jar-dependencies/org/logstash/filters/logstash-filter-ip2proxy/1.1.0/logstash-filter-ip2proxy-1.1.0.jar
|
60
60
|
homepage: https://www.ip2location.com
|
61
61
|
licenses:
|
62
62
|
- Apache License (2.0)
|
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
80
|
version: '0'
|
81
81
|
requirements: []
|
82
82
|
rubyforge_project:
|
83
|
-
rubygems_version: 2.6.
|
83
|
+
rubygems_version: 2.7.6.2
|
84
84
|
signing_key:
|
85
85
|
specification_version: 4
|
86
86
|
summary: Logstash filter IP2Proxy
|
Binary file
|