logstash-filter-geoip 5.0.3-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: c3a7b60b34cf996e9e51d36176e68003b37bbb070135c8bdd2af05ae13d0cc18
4
- data.tar.gz: 309d115fbcf29f69d0be327a98b19b10b12c285f1bfa551924bd54808e569231
3
+ metadata.gz: 952d937747de9fad0f91a1a2c586b1bba188eb20d5df75836878b38fa968d6f7
4
+ data.tar.gz: e1fdc9d56041d692689d503b5fc3003279ed06461b9c64094bbb771a140a98c8
5
5
  SHA512:
6
- metadata.gz: 4a51aa23d1da0e9b303346902a0e64ce8f9ac2eb4492a1d217e526e68347df46940f6089e32372414f9a1eb9fe4df03d3e366bc44d5dd88efc331f329899351a
7
- data.tar.gz: 1da7df8c807dc27af399dee5da36214078e98ca73033fea7142a854aadecef15a0f64ceeb1a62cc2107fbb8ee97c566daaf84d4346d5bc8d39729594cfbb3b0b
6
+ metadata.gz: eb693375414d224c4f49dca0e665069862d31428584b7cb718b606d70671a1b6c6235ae8d1e234fd9f5fc92cc1f377d133963b73daf0dfbd3a7c5b2b2de2e3f5
7
+ data.tar.gz: 700d8bdce621931ddbae7b126cbe4a6bfa24852b01c080cdcd09625b74e43e94bec8b6f97fd5f50784a2f64e2a4e321fc40c585ca0a00126474b27ceb379b5ba
@@ -1,3 +1,6 @@
1
+ ## 6.0.0
2
+ - Removed obsolete lru_cache_size field
3
+
1
4
  ## 5.0.3
2
5
  - Skip lookup operation if source field contains an empty string
3
6
  - Update of the GeoIP2 DB
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.
@@ -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
@@ -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', '4.2.0')
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 = '5.0.3'
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.3
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: 2017-12-21 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,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/4.2.0/logstash-filter-geoip-4.2.0.jar
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)