logstash-filter-geoip 5.0.3-java → 6.0.0-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/LICENSE +1 -1
- data/docs/index.asciidoc +1 -1
- data/lib/logstash-filter-geoip_jars.rb +1 -1
- data/lib/logstash/filters/geoip.rb +0 -2
- data/logstash-filter-geoip.gemspec +1 -1
- data/spec/filters/geoip_spec.rb +2 -2
- data/vendor/GeoLite2-City.mmdb +0 -0
- data/vendor/jar-dependencies/org/logstash/filters/logstash-filter-geoip/{4.2.0/logstash-filter-geoip-4.2.0.jar → 6.0.0/logstash-filter-geoip-6.0.0.jar} +0 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 952d937747de9fad0f91a1a2c586b1bba188eb20d5df75836878b38fa968d6f7
|
4
|
+
data.tar.gz: e1fdc9d56041d692689d503b5fc3003279ed06461b9c64094bbb771a140a98c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb693375414d224c4f49dca0e665069862d31428584b7cb718b606d70671a1b6c6235ae8d1e234fd9f5fc92cc1f377d133963b73daf0dfbd3a7c5b2b2de2e3f5
|
7
|
+
data.tar.gz: 700d8bdce621931ddbae7b126cbe4a6bfa24852b01c080cdcd09625b74e43e94bec8b6f97fd5f50784a2f64e2a4e321fc40c585ca0a00126474b27ceb379b5ba
|
data/CHANGELOG.md
CHANGED
data/LICENSE
CHANGED
data/docs/index.asciidoc
CHANGED
@@ -43,7 +43,7 @@ A `[geoip][location]` field is created if
|
|
43
43
|
the GeoIP lookup returns a latitude and longitude. The field is stored in
|
44
44
|
http://geojson.org/geojson-spec.html[GeoJSON] format. Additionally,
|
45
45
|
the default Elasticsearch template provided with the
|
46
|
-
|
46
|
+
{logstash-ref}/plugins-outputs-elasticsearch.html[elasticsearch output] maps
|
47
47
|
the `[geoip][location]` field to an http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-geo-point-type.html#_mapping_options[Elasticsearch geo_point].
|
48
48
|
|
49
49
|
As this field is a `geo_point` _and_ it is still valid GeoJSON, you get
|
@@ -3,4 +3,4 @@
|
|
3
3
|
require 'jar_dependencies'
|
4
4
|
require_jar('com.maxmind.geoip2', 'geoip2', '2.9.0')
|
5
5
|
require_jar('com.maxmind.db', 'maxmind-db', '1.2.2')
|
6
|
-
require_jar('org.logstash.filters', 'logstash-filter-geoip', '
|
6
|
+
require_jar('org.logstash.filters', 'logstash-filter-geoip', '6.0.0')
|
@@ -85,8 +85,6 @@ class LogStash::Filters::GeoIP < LogStash::Filters::Base
|
|
85
85
|
# number of cache misses and waste memory.
|
86
86
|
config :cache_size, :validate => :number, :default => 1000
|
87
87
|
|
88
|
-
config :lru_cache_size, :validate => :number, :obsolete => "This field has been obsoleted in favor of cache_size."
|
89
|
-
|
90
88
|
# Tags the event on failure to look up geo information. This can be used in later analysis.
|
91
89
|
config :tag_on_failure, :validate => :array, :default => ["_geoip_lookup_failure"]
|
92
90
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-filter-geoip'
|
4
|
-
s.version = '
|
4
|
+
s.version = '6.0.0'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "Adds geographical information about an IP address"
|
7
7
|
s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
|
data/spec/filters/geoip_spec.rb
CHANGED
@@ -93,7 +93,7 @@ describe LogStash::Filters::GeoIP do
|
|
93
93
|
|
94
94
|
it "should set other subfields of 'target' properly" do
|
95
95
|
expect(event.get("target").to_hash.keys.sort).to eq(["city_name", "ip", "region_name"])
|
96
|
-
expect(event.get("[target][city_name]")).to eq("
|
96
|
+
expect(event.get("[target][city_name]")).to eq("Salem")
|
97
97
|
expect(event.get("[target][region_name]")).to eq("Massachusetts")
|
98
98
|
end
|
99
99
|
|
@@ -248,7 +248,7 @@ describe LogStash::Filters::GeoIP do
|
|
248
248
|
expect(event.get("geoip")).not_to be_empty
|
249
249
|
expect(event.get("geoip")["ip"]).to eq("2607:f0d0:1002:51:0:0:0:4")
|
250
250
|
expect(event.get("geoip").to_hash.keys.sort).to eq(
|
251
|
-
["continent_code", "country_code2", "country_code3", "country_name", "ip", "latitude", "location", "longitude"]
|
251
|
+
["city_name", "continent_code", "country_code2", "country_code3", "country_name", "dma_code", "ip", "latitude", "location", "longitude", "postal_code", "region_code", "region_name", "timezone"]
|
252
252
|
)
|
253
253
|
end
|
254
254
|
end
|
data/vendor/GeoLite2-City.mmdb
CHANGED
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-filter-geoip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 6.0.0
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -84,7 +84,7 @@ files:
|
|
84
84
|
- vendor/LICENSE.txt
|
85
85
|
- vendor/jar-dependencies/com/maxmind/db/maxmind-db/1.2.2/maxmind-db-1.2.2.jar
|
86
86
|
- vendor/jar-dependencies/com/maxmind/geoip2/geoip2/2.9.0/geoip2-2.9.0.jar
|
87
|
-
- vendor/jar-dependencies/org/logstash/filters/logstash-filter-geoip/
|
87
|
+
- vendor/jar-dependencies/org/logstash/filters/logstash-filter-geoip/6.0.0/logstash-filter-geoip-6.0.0.jar
|
88
88
|
homepage: http://www.elastic.co/guide/en/logstash/current/index.html
|
89
89
|
licenses:
|
90
90
|
- Apache License (2.0)
|