logstash-filter-geoip 5.0.5-java → 6.0.0-java

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: b4001fcb4f99720f82469a008684c8c0705635c0535be052057d0d06b55046af
4
- data.tar.gz: c9cbc91bc27a23b19ba8036ebc21194564c38b396b40d82a4a138fefc06cda61
3
+ metadata.gz: 952d937747de9fad0f91a1a2c586b1bba188eb20d5df75836878b38fa968d6f7
4
+ data.tar.gz: e1fdc9d56041d692689d503b5fc3003279ed06461b9c64094bbb771a140a98c8
5
5
  SHA512:
6
- metadata.gz: 06fdcfddcc38344374edacb89d165c34e2abe285a10834db592cab28c01fa727017988672f0619d70e1c0c3cceec9f901ebc0d7e97e80392b69287510b658d2a
7
- data.tar.gz: a38a23bd612aa75d0f4ba49d33e6afbbcf9ce8afead27f7083b8660dda1370640eb45ad5261f20e74e5550414d638c94fa5f6392e9627525059fdb3d7958aecf
6
+ metadata.gz: eb693375414d224c4f49dca0e665069862d31428584b7cb718b606d70671a1b6c6235ae8d1e234fd9f5fc92cc1f377d133963b73daf0dfbd3a7c5b2b2de2e3f5
7
+ data.tar.gz: 700d8bdce621931ddbae7b126cbe4a6bfa24852b01c080cdcd09625b74e43e94bec8b6f97fd5f50784a2f64e2a4e321fc40c585ca0a00126474b27ceb379b5ba
data/CHANGELOG.md CHANGED
@@ -1,8 +1,5 @@
1
- ## 5.0.5
2
- - Update log4j dependency to 2.17.1
3
-
4
- ## 5.0.4
5
- - Updated Log4j dependency to 2.17.0
1
+ ## 6.0.0
2
+ - Removed obsolete lru_cache_size field
6
3
 
7
4
  ## 5.0.3
8
5
  - Skip lookup operation if source field contains an empty string
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012–2016 Elasticsearch <http://www.elastic.co>
1
+ Copyright (c) 2012-2018 Elasticsearch <http://www.elastic.co>
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/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
- <<plugins-outputs-elasticsearch,`elasticsearch` output>> maps
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
@@ -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
 
@@ -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', '5.0.5')
6
+ require_jar('org.logstash.filters', 'logstash-filter-geoip', '6.0.0')
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-filter-geoip'
4
- s.version = '5.0.5'
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"
@@ -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("Watertown")
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
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: 5.0.5
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: 2022-01-05 00:00:00.000000000 Z
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,8 +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/5.0.4/logstash-filter-geoip-5.0.4.jar
88
- - vendor/jar-dependencies/org/logstash/filters/logstash-filter-geoip/5.0.5/logstash-filter-geoip-5.0.5.jar
87
+ - vendor/jar-dependencies/org/logstash/filters/logstash-filter-geoip/6.0.0/logstash-filter-geoip-6.0.0.jar
89
88
  homepage: http://www.elastic.co/guide/en/logstash/current/index.html
90
89
  licenses:
91
90
  - Apache License (2.0)
@@ -108,7 +107,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
107
  - !ruby/object:Gem::Version
109
108
  version: '0'
110
109
  requirements: []
111
- rubygems_version: 3.1.6
110
+ rubyforge_project:
111
+ rubygems_version: 2.6.13
112
112
  signing_key:
113
113
  specification_version: 4
114
114
  summary: Adds geographical information about an IP address