logstash-filter-ip2location 2.0.1 → 2.0.2

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
- SHA1:
3
- metadata.gz: 2dae0ba8c76d5020b5e15c74be6e4aa4c89d7c56
4
- data.tar.gz: d4bd89c732a821658bd3582bb702f8d81b90b757
2
+ SHA256:
3
+ metadata.gz: 2fa86b9c0eb8143712f4d38ba1fa6fdeddfe6a2307f7878dab8941fdae597680
4
+ data.tar.gz: e16e80d2b68d11051ab71f186203f5c5d82877810ad5e6b8faa164c946c4464e
5
5
  SHA512:
6
- metadata.gz: fc2cbaaee327f6755aa1576d68ee6dc440f981cc6b71f88f489931e0871600313109e0b22d4aa0e35d4616affa06a2a5c13df0a773716dcc6a7e5442e3b41b5a
7
- data.tar.gz: 41886165f3b5626d40f896ff6b8883fced5dc1ec4fdd9daed24f7f06ebe3b4871bbeec24de1ed71cea7488bd79b9e53a1a825e3670e8c18ba93f11d4029e5330
6
+ metadata.gz: 868c5ba3c29ad98b5b4fc0e55a9a6bb0b493394abda42d7809b239a96f9ad65cdf5efb5847706c7fff47ec594b0e6a329c74a2bbcdb97388461c69a9f41e329b
7
+ data.tar.gz: 2804e949d4e713e36a24ab82794992593ae8f7fb4f904086483573f70dc63f6662201f9de6bc1b7855bc1fb0d5000d4e7c8814f1687e29b7f1561619912d3e38
@@ -1,3 +1,3 @@
1
1
  require 'jar_dependencies'
2
2
  require_jar('com.ip2location.ip2location', 'ip2location', '8.0.3')
3
- require_jar('org.logstash.filters', 'logstash-filter-ip2location', '2.0.1')
3
+ require_jar('org.logstash.filters', 'logstash-filter-ip2location', '2.0.2')
@@ -46,7 +46,7 @@ class LogStash::Filters::IP2Location < LogStash::Filters::Base
46
46
  public
47
47
  def filter(event)
48
48
  json = JSON.parse(event.to_json)
49
- ip = json["clientip"]
49
+ ip = json[@source]
50
50
 
51
51
  return unless filter?(event)
52
52
  if value = Cache.find(event, ip, @ip2locationfilter, @cache_size).get('ip2location')
@@ -160,4 +160,4 @@ class Cache
160
160
 
161
161
  alias_method :refresh_event, :cache_event
162
162
  end
163
- end
163
+ end
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-filter-ip2location'
4
- s.version = '2.0.1'
4
+ s.version = '2.0.2'
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."
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: 2.0.1
4
+ version: 2.0.2
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-18 00:00:00.000000000 Z
11
+ date: 2018-10-16 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/2.0.1/logstash-filter-ip2location-2.0.1.jar
61
+ - vendor/jar-dependencies/org/logstash/filters/logstash-filter-ip2location/2.0.2/logstash-filter-ip2location-2.0.2.jar
62
62
  homepage: https://www.ip2location.com
63
63
  licenses:
64
64
  - Apache License (2.0)
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  version: '0'
83
83
  requirements: []
84
84
  rubyforge_project:
85
- rubygems_version: 2.6.14
85
+ rubygems_version: 2.7.7
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: Logstash filter IP2Location