logstash-filter-geoip 6.0.0-java → 6.0.1-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 +4 -0
- data/docs/index.asciidoc +2 -2
- data/logstash-filter-geoip.gemspec +1 -1
- data/spec/filters/geoip_spec.rb +4 -4
- data/vendor/GeoLite2-City.mmdb +0 -0
- data/vendor/jar-dependencies/org/logstash/filters/logstash-filter-geoip/6.0.0/logstash-filter-geoip-6.0.0.jar +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 63e99c3666e0446a5e4eca1cb22b0734ebb32a4e4792ab034328088d997dad12
|
|
4
|
+
data.tar.gz: 100cd6a36940d85140c577381163917007847d50603fe4cfb11a499cd5f619a6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ff2e9a74e4569fea556d3412778da9c818128e1bc36fefe470053c0b2d45a9145d2e6fb6f4391b6d6234c55babdcfcc597bac8ef49aa5cf4d1eeca54a76fffa8
|
|
7
|
+
data.tar.gz: 51519bfa9cba02fcfaa50b0b7469b5ccd3c142c83e34a5350130c375e8bf167e3e2aeaf4c05d3c849e63106d2f9c16f696890fe9bf387029bc3e1cb6730b89cb
|
data/CHANGELOG.md
CHANGED
data/docs/index.asciidoc
CHANGED
|
@@ -33,7 +33,7 @@ https://www.maxmind.com/en/geoip2-databases[Commercial databases] from Maxmind a
|
|
|
33
33
|
|
|
34
34
|
If you need to use databases other than the bundled GeoLite2 City, you can download them directly
|
|
35
35
|
from Maxmind's website and use the `database` option to specify their location. The GeoLite2 databases
|
|
36
|
-
can be
|
|
36
|
+
can be https://dev.maxmind.com/geoip/geoip2/geolite2[downloaded from here].
|
|
37
37
|
|
|
38
38
|
If you would like to get Autonomous System Number(ASN) information, you can use the GeoLite2-ASN database.
|
|
39
39
|
|
|
@@ -44,7 +44,7 @@ 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
|
-
the `[geoip][location]` field to an
|
|
47
|
+
the `[geoip][location]` field to an {ref}/geo-point.html[Elasticsearch Geo_point datatype].
|
|
48
48
|
|
|
49
49
|
As this field is a `geo_point` _and_ it is still valid GeoJSON, you get
|
|
50
50
|
the awesomeness of Elasticsearch's geospatial query, facet and filter functions
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
|
|
3
3
|
s.name = 'logstash-filter-geoip'
|
|
4
|
-
s.version = '6.0.
|
|
4
|
+
s.version = '6.0.1'
|
|
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,8 +93,8 @@ 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("
|
|
97
|
-
expect(event.get("[target][region_name]")).to eq("
|
|
96
|
+
expect(event.get("[target][city_name]")).to eq("Hudson")
|
|
97
|
+
expect(event.get("[target][region_name]")).to eq("New Hampshire")
|
|
98
98
|
end
|
|
99
99
|
|
|
100
100
|
end
|
|
@@ -248,8 +248,8 @@ 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
|
-
|
|
252
|
-
|
|
251
|
+
["continent_code", "country_code2", "country_code3", "country_name", "ip", "latitude", "location", "longitude", "timezone"]
|
|
252
|
+
)
|
|
253
253
|
end
|
|
254
254
|
end
|
|
255
255
|
|
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: 6.0.
|
|
4
|
+
version: 6.0.1
|
|
5
5
|
platform: java
|
|
6
6
|
authors:
|
|
7
7
|
- Elastic
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-01
|
|
11
|
+
date: 2019-05-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|