logstash-filter-ip2proxy 2.2.1 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf7ae72f39b3ced4e703b07a46f8d9c83fa65b65c96d0081378303eb571517e4
4
- data.tar.gz: 6ffc47d1d0eb2e28fb505cf81565d2ddcf35f1b57fee9f6d24cfeea2ae0621c8
3
+ metadata.gz: f9dff67a512aee4b5767218370d4056d7bb5828c589a06e52283fa6c75b75476
4
+ data.tar.gz: be48f6f9ae7156cb854da238ec87ce5b4f7abb2fcda8adbbc28d133c052f4d51
5
5
  SHA512:
6
- metadata.gz: fba84548436b187387ee3979cc8b4c1f01f1f25d6e315d95aae08b4c4333b801aad16c81ed793005a8835d3412276f04219ff655df21ff9734eff24a8f2a4e67
7
- data.tar.gz: f99eeba1722200414c16f8ebcee525905f56a2be2f75e60f374e5f0a33bf826a548c53d41808c66837ae79b806e890a60d7bdce824889a13ef1e68f9f8656986
6
+ metadata.gz: 124e8063f15a71fd3b4fda9067eb2f8c497b89886b9214fd1eb744f393ba623f33f79bcb2a62bd76212b9ebaa56d6c1daecc10332be845c08c1ddb127420ad1d
7
+ data.tar.gz: 120e824008b50765c7b8e9a1e2be88a9dbad504ab9ea917910392a71806487e4f69da0daa81db7381941b795527a3e5f11f9eb679c84303b5f21fe3796e3b585
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2021 IP2Location.com
1
+ Copyright (c) 2022 IP2Location.com
2
2
 
3
3
  Licensed under the Apache License, Version 2.0 (the "License");
4
4
  you may not use this file except in compliance with the License.
data/README.md CHANGED
@@ -47,11 +47,15 @@ output {
47
47
  |---|---|---|
48
48
  |source|string|Yes|
49
49
  |database|a valid filesystem path|No|
50
+ |use_memory_mapped|boolean|No|
50
51
  |use_cache|boolean|No|
52
+ |hide_unsupported_fields|boolean|No|
51
53
 
52
54
  * **source** field is a required setting that containing the IP address or hostname to get the ip information.
53
55
  * **database** field is an optional setting that containing the path to the IP2Proxy BIN database file.
56
+ * **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.
54
57
  * **use_cache** field is an optional setting that used to allow user to enable the use of cache. Default value is true.
58
+ * **hide_unsupported_fields** field is an optional setting that used to allow user to hide unsupported fields. Default value is false.
55
59
 
56
60
 
57
61
  ## Sample Output
@@ -8,7 +8,7 @@ class LogStash::Filters::IP2Proxy < LogStash::Filters::Base
8
8
  config_name "ip2proxy"
9
9
 
10
10
  # The path to the IP2Proxy.BIN database file which Logstash should use.
11
- # If not specified, this will default to the IP2PROXY-LITE-PX4.BIN database that embedded in the plugin.
11
+ # If not specified, this will default to the IP2PROXY-LITE-PX1.BIN database that embedded in the plugin.
12
12
  config :database, :validate => :path
13
13
 
14
14
  # The field containing the IP address.
@@ -21,6 +21,12 @@ class LogStash::Filters::IP2Proxy < LogStash::Filters::Base
21
21
  # The field used to allow user to enable the use of cache.
22
22
  config :use_cache, :validate => :boolean, :default => true
23
23
 
24
+ # The field used to allow user to enable the use of memory mapped file.
25
+ config :use_memory_mapped, :validate => :boolean, :default => false
26
+
27
+ # The field used to allow user to hide unsupported fields.
28
+ config :hide_unsupported_fields, :validate => :boolean, :default => false
29
+
24
30
  # The field used to define the size of the cache. It is not required and the default value is 10 000
25
31
  config :cache_size, :validate => :number, :required => false, :default => 10_000
26
32
 
@@ -35,8 +41,8 @@ class LogStash::Filters::IP2Proxy < LogStash::Filters::Base
35
41
  end
36
42
 
37
43
  @logger.info("Using ip2proxy database", :path => @database)
38
-
39
- @ip2proxyfilter = org.logstash.filters.IP2ProxyFilter.new(@source, @target, @database)
44
+
45
+ @ip2proxyfilter = org.logstash.filters.IP2ProxyFilter.new(@source, @target, @database, @use_memory_mapped, @hide_unsupported_fields)
40
46
  end
41
47
 
42
48
  public
@@ -1,3 +1,3 @@
1
1
  require 'jar_dependencies'
2
- require_jar('com.ip2proxy.ip2proxy', 'ip2proxy', '3.1.0')
3
- require_jar('org.logstash.filters', 'logstash-filter-ip2proxy', '2.2.1')
2
+ require_jar('com.ip2proxy.ip2proxy', 'ip2proxy', '3.2.0')
3
+ require_jar('org.logstash.filters', 'logstash-filter-ip2proxy', '2.3.0')
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-filter-ip2proxy'
4
- s.version = '2.2.1'
4
+ s.version = '2.3.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."
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: 2.2.1
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - IP2Location
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-17 00:00:00.000000000 Z
11
+ date: 2022-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstash-core-plugin-api
@@ -56,8 +56,8 @@ files:
56
56
  - spec/filters/ip2proxy_spec.rb
57
57
  - spec/spec_helper.rb
58
58
  - vendor/IP2PROXY-LITE-PX1.BIN
59
- - vendor/jar-dependencies/com/ip2proxy/ip2proxy/ip2proxy/3.1.0/ip2proxy-3.1.0.jar
60
- - vendor/jar-dependencies/org/logstash/filters/logstash-filter-ip2proxy/2.2.1/logstash-filter-ip2proxy-2.2.1.jar
59
+ - vendor/jar-dependencies/com/ip2proxy/ip2proxy/ip2proxy/3.2.0/ip2proxy-3.2.0.jar
60
+ - vendor/jar-dependencies/org/logstash/filters/logstash-filter-ip2proxy/2.3.0/logstash-filter-ip2proxy-2.3.0.jar
61
61
  homepage: https://www.ip2location.com
62
62
  licenses:
63
63
  - Apache-2.0