fluent-plugin-qqwry 0.0.5 → 0.1.0

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
  SHA1:
3
- metadata.gz: b7a8ab5c454e3c5a201ba6828bbce69f13ba2a4b
4
- data.tar.gz: b26b3a93a455259a96e4995099f9476b80fded10
3
+ metadata.gz: 868bf9f3797c4482c3d0906413a9a1d1b9e3db76
4
+ data.tar.gz: 78d739eaff55c18108fdc9e02459924e48d9cfe5
5
5
  SHA512:
6
- metadata.gz: 3aff9879fc7cd5b0b9a95ab72d1c466b5076156b5ee9ead7f24fc013ff9744cd88fa0fe2aa3575cee8944e8aed5c7ba9d93fed0a67654280895cbfae2389406a
7
- data.tar.gz: d3c86e94734d4b197ace10c9b4784327e86f4fc66232adedda9d3534da5074a41547a7b130829ca017034f6cc9af1c1fd028326978009687208966a443225573
6
+ metadata.gz: 8f73e2f3282a88e843bf36630c2627a0cb8a142a0efe40b9c79f06bb47c6ffc087248f04c72b255feb205a7a8b6ed6e485fae8454e9159209edc5d6fa044d089
7
+ data.tar.gz: 748e4f9530b09c8001f2e78357c817a8e8eb9e86b87e67b2ff3c498b01756e1fc8c5885639eebef460c02108ef21ba26af71c3ca9098dafa74d306863157f938
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  Fluentd Output plugin to add information about geographical location of IP addresses with QQWry databases.
6
6
 
7
- fluent-plugin-geoip has bundled qqwry.dat (http://www.cz88.net)
7
+ fluent-plugin-qqwry has bundled qqwry.dat (http://www.cz88.net)
8
8
 
9
9
  ## Dependency
10
10
 
@@ -32,15 +32,13 @@ $ sudo /usr/lib64/fluent/ruby/bin/fluent-gem install fluent-plugin-qqwry
32
32
  # in the case of accessing nested value, delimit keys by dot like 'host.ip'.
33
33
  qqwry_lookup_key host
34
34
 
35
- # Specify optional qqwry database (using bundled GeoLiteCity databse by default)
35
+ # Specify optional qqwry database (using bundled QQWry databse by default)
36
36
  qqwry_database '/path/to/your/qqwry.dat'
37
37
 
38
38
  # Set adding field with placeholder (more than one settings are required.)
39
39
  <record>
40
- city ${city['host']}
41
- area ${area_code['host']}
40
+ area ${area['host']}
42
41
  country ${country['host']}
43
- province ${province['host']}
44
42
  </record>
45
43
 
46
44
  # Settings for tag
@@ -62,8 +60,8 @@ $ sudo /usr/lib64/fluent/ruby/bin/fluent-gem install fluent-plugin-qqwry
62
60
  type qqwry
63
61
  qqwry_lookup_key user1_host, user2_host
64
62
  <record>
65
- user1_city ${city['user1_host']}
66
- user2_city ${city['user2_host']}
63
+ user1_area ${area['user1_host']}
64
+ user2_area ${area['user2_host']}
67
65
  </record>
68
66
  remove_tag_prefix access.
69
67
  tag qqwry.${tag}
@@ -88,9 +86,8 @@ $ sudo /usr/lib64/fluent/ruby/bin/fluent-gem install fluent-plugin-qqwry
88
86
  type qqwry
89
87
  qqwry_lookup_key host
90
88
  <record>
91
- city ${city['host']}
92
- lat ${latitude['host']}
93
- lon ${longitude['host']}
89
+ area ${area['host']}
90
+ country ${country['host']}
94
91
  </record>
95
92
  remove_tag_prefix test.
96
93
  tag debug.${tag}
@@ -111,7 +108,7 @@ $ echo '{"host":"66.102.9.80","message":"test"}' | fluent-cat test.qqwry
111
108
  # check the result at stdout
112
109
  $ tail /var/log/td-agent/td-agent.log
113
110
  2013-08-04 16:21:32 +0900 test.qqwry: {"host":"66.102.9.80","message":"test"}
114
- 2013-08-04 16:21:32 +0900 debug.qqwry: {"host":"66.102.9.80","message":"test","city":"Mountain View","lat":37.4192008972168,"lon":-122.05740356445312}
111
+ 2013-08-04 16:21:32 +0900 debug.qqwry: {"host":"66.102.9.80","message":"test","area":"电信ADSL","country":"福建省厦门市海沧区"}
115
112
  ```
116
113
 
117
114
  ## Parameters
@@ -131,7 +128,7 @@ Set one or more option are required unless using `tag` option for editing tag na
131
128
 
132
129
  * `tag`
133
130
 
134
- On using this option with tag placeholder like `tag qqwry.${tag}` (test code is available at [test_out_qqwry.rb](https://github.com/y-ken/fluent-plugin-geoip/blob/master/test/plugin/test_out_geoip.rb)), it will be overwrite after these options affected. which are remove_tag_prefix, remove_tag_suffix, add_tag_prefix and add_tag_suffix.
131
+ On using this option with tag placeholder like `tag qqwry.${tag}` (test code is available at [test_out_qqwry.rb](https://github.com/fakechris/fluent-plugin-qqwry/blob/master/test/plugin/test_out_qqwry.rb)), it will be overwrite after these options affected. which are remove_tag_prefix, remove_tag_suffix, add_tag_prefix and add_tag_suffix.
135
132
 
136
133
  * `flush_interval` (default: 0 sec)
137
134
 
@@ -4,10 +4,10 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "fluent-plugin-qqwry"
7
- spec.version = "0.0.5"
7
+ spec.version = "0.1.0"
8
8
  spec.authors = ["Chris Song"]
9
9
  spec.email = ["fakechris@gmail.com"]
10
- spec.summary = %q{Fluentd Output plugin to add information about geographical location of IP addresses with QQWry databases.}
10
+ spec.summary = %q{Fluentd output filter plugin to add information about geographical location of IP addresses with QQWry databases.}
11
11
  spec.homepage = "https://github.com/fakechris/fluent-plugin-qqwry"
12
12
  spec.license = "Apache License, Version 2.0"
13
13
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-qqwry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Song
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-30 00:00:00.000000000 Z
11
+ date: 2014-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -120,8 +120,8 @@ rubyforge_project:
120
120
  rubygems_version: 2.2.2
121
121
  signing_key:
122
122
  specification_version: 4
123
- summary: Fluentd Output plugin to add information about geographical location of IP
124
- addresses with QQWry databases.
123
+ summary: Fluentd output filter plugin to add information about geographical location
124
+ of IP addresses with QQWry databases.
125
125
  test_files:
126
126
  - test/helper.rb
127
127
  - test/plugin/test_out_qqwry.rb