You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+35-2Lines changed: 35 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
# IP2Proxy Filter Plugin
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, data center ranges, residential proxies, consumer privacy networks, and enterprise private networks using IP2Proxy BIN database. Other information available includes proxy type, country, state, city, ISP, domain name, usage type, AS number, AS name, threats, last seen date and provider names. The library took the proxy IP address from **IP2Proxy BIN Data** file.
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, data center ranges, residential proxies, consumer privacy networks, and enterprise private networks using IP2Proxy BIN database. Other information available includes proxy type, country, state, city, ISP, domain name, usage type, AS number, AS name, threats, last seen date and provider names. The library took the proxy IP address from **IP2Proxy BIN Data** file and **IP2Location.io** data.
3
3
4
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
@@ -11,6 +11,9 @@ This plugin requires IP2Proxy BIN data file to function. You may download the BI
11
11
* IP2Proxy LITE BIN Data (Free): https://lite.ip2location.com
12
12
* IP2Proxy Commercial BIN Data (Commercial): https://www.ip2location.com
13
13
14
+
## Dependencies (IP2LOCATION.IO DATA)
15
+
This plugin requires API key to function. You may sign up for a free API key at https://www.ip2location.io/pricing.
16
+
14
17
15
18
## Installation
16
19
Install this plugin by the following code:
@@ -32,7 +35,33 @@ filter {
32
35
match => { "message" => "%{COMBINEDAPACHELOG}"}
33
36
}
34
37
ip2proxy {
35
-
source => "clientip"
38
+
source => "[source][address]"
39
+
}
40
+
}
41
+
42
+
output {
43
+
elasticsearch {
44
+
hosts => [ "localhost:9200" ]
45
+
}
46
+
}
47
+
```
48
+
49
+
## Config File Example using IP2Location.io
50
+
```
51
+
input {
52
+
beats {
53
+
port => "5043"
54
+
}
55
+
}
56
+
57
+
filter {
58
+
grok {
59
+
match => { "message" => "%{COMBINEDAPACHELOG}"}
60
+
}
61
+
ip2proxy {
62
+
source => "[source][address]"
63
+
lookup_type => "ws"
64
+
api_key => "YOUR_API_KEY"
36
65
}
37
66
}
38
67
@@ -51,12 +80,16 @@ output {
51
80
|database|a valid filesystem path|No|
52
81
|use_memory_mapped|boolean|No|
53
82
|use_cache|boolean|No|
83
+
|lookup_type|string|No|
84
+
|api_key|string|No|
54
85
|hide_unsupported_fields|boolean|No|
55
86
56
87
***source** field is a required setting that containing the IP address or hostname to get the ip information.
57
88
***database** field is an optional setting that containing the path to the IP2Proxy BIN database file.
58
89
***use_memory_mapped** field is an optional setting that used to allow user to enable the use of memory mapped file. Default value is false.
59
90
***use_cache** field is an optional setting that used to allow user to enable the use of cache. Default value is true.
91
+
***lookup_type** field is an optional setting that used to allow user to decide the lookup method either using IP2Proxy BIN database file(db) or IP2Location.io data(ws). Default value is db.
92
+
***api_key** field is an optional setting that used to allow user to set the API Key of the IP2Location.io lookup.
60
93
***hide_unsupported_fields** field is an optional setting that used to allow user to hide unsupported fields. Default value is false.
Copy file name to clipboardExpand all lines: logstash-filter-ip2proxy.gemspec
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
Gem::Specification.newdo |s|
2
2
3
3
s.name='logstash-filter-ip2proxy'
4
-
s.version='2.3.2'
4
+
s.version='2.4.0'
5
5
s.licenses=['Apache-2.0']
6
6
s.summary="Logstash filter IP2Proxy"
7
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, data center ranges and residential proxies using IP2Proxy BIN database."
0 commit comments