fluent-plugin-filter-geoip 0.5.3 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -2
- data/fluent-plugin-filter-geoip.gemspec +3 -3
- data/lib/fluent/plugin/filter_geoip.rb +2 -1
- metadata +14 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2b912120c49b9b8aedfc16c1aa114d1cff01903
|
4
|
+
data.tar.gz: 53d5bda0b163c1c53f345b1253d8e35c388c8e71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 826ebb9e102ce41fe3335c7f199cef9ff3b607b2f2c98bb69223b5e559e93ebc0514c95c64007e80974b7efa7882b42ca86063c48241cd7f6941a9188f74def2
|
7
|
+
data.tar.gz: 15cdf6ad78ef40087b8f027b5372d7294ad4c8532f5618529bd6fd255fbf6cb29617c741ec09abb24b218f9b3c2f2aa9e2aa7ad929060caa4e9056bb0c30fcde
|
data/README.md
CHANGED
@@ -2,6 +2,16 @@
|
|
2
2
|
|
3
3
|
This is a [Fluentd](http://fluentd.org/) filter plugin for adding [GeoIP data](http://dev.maxmind.com/geoip/geoip2/geolite2/) to record. Supports the new Maxmind v2 database formats.
|
4
4
|
|
5
|
+
## Requirements
|
6
|
+
|
7
|
+
| fluent-plugin-filter-geoip | fluentd | td-agent | ruby |
|
8
|
+
| -------------------------- | --------------- | -------- | ------ |
|
9
|
+
| 1.x.x | >= 0.14.0, < 2 | 3 | >= 2.1 |
|
10
|
+
| 0.x.x | ~> 0.12.0 | 2 | >= 1.9 |
|
11
|
+
|
12
|
+
* The 1.x.x series is developed from this branch (master)
|
13
|
+
* The 0.x.x series (compatible with fluentd v0.12, and td-agent 2) is developed on the [v0.x.x branch](https://github.com/mosuka/fluent-plugin-filter-geoip/tree/v0.x.x)
|
14
|
+
|
5
15
|
## Installation
|
6
16
|
|
7
17
|
Install it yourself as:
|
@@ -216,7 +226,7 @@ connection_type true
|
|
216
226
|
|
217
227
|
Assuming following inputs are coming:
|
218
228
|
|
219
|
-
```
|
229
|
+
```json
|
220
230
|
{
|
221
231
|
"clientip": "200.114.49.218"
|
222
232
|
}
|
@@ -224,7 +234,7 @@ Assuming following inputs are coming:
|
|
224
234
|
|
225
235
|
then output bocomes as belows:
|
226
236
|
|
227
|
-
```
|
237
|
+
```json
|
228
238
|
{
|
229
239
|
"clientip": "200.114.49.218",
|
230
240
|
"geoip": {
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "fluent-plugin-filter-geoip"
|
7
|
-
spec.version = "0.
|
7
|
+
spec.version = "1.0.0"
|
8
8
|
spec.authors = ["Minoru Osuka"]
|
9
9
|
spec.email = ["minoru.osuka@gmail.com"]
|
10
10
|
|
@@ -19,10 +19,10 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.add_runtime_dependency 'fluentd', '
|
22
|
+
spec.add_runtime_dependency 'fluentd', ['>= 0.14.0', '< 2']
|
23
23
|
spec.add_runtime_dependency 'maxminddb', '~> 0.1.11'
|
24
24
|
|
25
|
-
spec.add_development_dependency 'bundler', '~> 1.14
|
25
|
+
spec.add_development_dependency 'bundler', '~> 1.14'
|
26
26
|
spec.add_development_dependency 'rake', '~> 11.1.2'
|
27
27
|
spec.add_development_dependency 'test-unit', '~> 3.1.5'
|
28
28
|
spec.add_development_dependency 'minitest', '~> 5.8.3'
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-filter-geoip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Minoru Osuka
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.14.0
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
22
|
+
version: '2'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 0.14.0
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: '2'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: maxminddb
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,14 +50,14 @@ dependencies:
|
|
44
50
|
requirements:
|
45
51
|
- - "~>"
|
46
52
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.14
|
53
|
+
version: '1.14'
|
48
54
|
type: :development
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
51
57
|
requirements:
|
52
58
|
- - "~>"
|
53
59
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.14
|
60
|
+
version: '1.14'
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: rake
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|