logstash-filter-ip2location 1.1.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/logstash-filter-ip2location_jars.rb +1 -1
- data/lib/logstash/filters/ip2location.rb +4 -1
- data/logstash-filter-ip2location.gemspec +1 -1
- data/vendor/jar-dependencies/org/logstash/filters/logstash-filter-ip2location/2.0.0/logstash-filter-ip2location-2.0.0.jar +0 -0
- metadata +3 -3
- data/vendor/jar-dependencies/org/logstash/filters/logstash-filter-ip2location/1.1.0/logstash-filter-ip2location-1.1.0.jar +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c547d446310164aad967760e6b2fe3e082f5a6c8
|
4
|
+
data.tar.gz: 82ce75073881ea505be03e4124be65062a26a92e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dea32eb01d27ebc8b8b3b644b80e7f098268c254109bd011fc3be8dca14dbd80173633fa83dccb383d862c985b6084888de2aae4c08ba250e4b57a2465500c16
|
7
|
+
data.tar.gz: 99aebd9b2fd0cf0aba145afb4380625f54ad6f43d277377a3f705f76f77a6968c04aa50bf8a4337a6ed77422422a48ec087b0a7eadc64e02d68cf0700850b9e2
|
data/README.md
CHANGED
@@ -50,9 +50,11 @@ output {
|
|
50
50
|
|---|---|---|
|
51
51
|
|source|string|Yes|
|
52
52
|
|database|a valid filesystem path|No|
|
53
|
+
|use_memory_mapped|boolean|No|
|
53
54
|
|
54
55
|
* **source** field is a required setting that containing the IP address or hostname to get the ip information.
|
55
56
|
* **database** field is an optional setting that containing the path to the IP2Location BIN database file.
|
57
|
+
* **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.
|
56
58
|
|
57
59
|
|
58
60
|
## Sample Output
|
@@ -22,6 +22,9 @@ class LogStash::Filters::IP2Location < LogStash::Filters::Base
|
|
22
22
|
# The field used to define iplocation as target.
|
23
23
|
config :target, :validate => :string, :default => 'ip2location'
|
24
24
|
|
25
|
+
# The field used to allow user to enable the use of memory mapped file.
|
26
|
+
config :use_memory_mapped, :validate => :boolean, :default => false
|
27
|
+
|
25
28
|
# The field used to define the size of the cache. It is not required and the default value is 10 000
|
26
29
|
config :cache_size, :validate => :number, :required => false, :default => 10_000
|
27
30
|
|
@@ -37,7 +40,7 @@ class LogStash::Filters::IP2Location < LogStash::Filters::Base
|
|
37
40
|
|
38
41
|
@logger.info("Using ip2location database", :path => @database)
|
39
42
|
|
40
|
-
@ip2locationfilter = org.logstash.filters.IP2LocationFilter.new(@source, @target, @database)
|
43
|
+
@ip2locationfilter = org.logstash.filters.IP2LocationFilter.new(@source, @target, @database, @use_memory_mapped)
|
41
44
|
end
|
42
45
|
|
43
46
|
public
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-filter-ip2location'
|
4
|
-
s.version = '
|
4
|
+
s.version = '2.0.0'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "Logstash filter IP2Location"
|
7
7
|
s.description = "IP2Location filter plugin for Logstash enables Logstash's users to add geolocation information such as country, state, city, latitude, longitude, ZIP code, time zone, ISP, domain name, connection speed, IDD code, area code, weather station code, weather station name, MNC, MCC, mobile brand, elevation and usage type by IP address."
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-filter-ip2location
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- IP2Location
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logstash-core-plugin-api
|
@@ -58,7 +58,7 @@ files:
|
|
58
58
|
- spec/spec_helper.rb
|
59
59
|
- vendor/IP2LOCATION-LITE-DB3.IPV6.BIN
|
60
60
|
- vendor/jar-dependencies/com/ip2location/ip2location/ip2location/8.0.3/ip2location-8.0.3.jar
|
61
|
-
- vendor/jar-dependencies/org/logstash/filters/logstash-filter-ip2location/
|
61
|
+
- vendor/jar-dependencies/org/logstash/filters/logstash-filter-ip2location/2.0.0/logstash-filter-ip2location-2.0.0.jar
|
62
62
|
homepage: https://www.ip2location.com
|
63
63
|
licenses:
|
64
64
|
- Apache License (2.0)
|