fluent-plugin-hash-forward 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/fluent-plugin-hash-forward.gemspec +2 -2
- data/lib/fluent/plugin/out_hash_forward.rb +6 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dc5f372dbd73daa73bc4a7da282a7edf386195a6
|
|
4
|
+
data.tar.gz: bff3830548afa79073a48dab264cb7a484f36cab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 513d76863848a0de51a6675eb9b2e7b472d371e2ab69a0c1c47b3769ffc9dc2c75a005a064b5c3a8fd8bf8b4aaa43ca38365310d2f344f41ddf1fb319eef2fc7
|
|
7
|
+
data.tar.gz: 5f8e77d7b1eb80719aad7b9ce1a8981dc84526b9451619074ec2920f595e25833b25652ff8a6e9dc16fa18efa9e4f1855f1c60edf4c7a4e7c92120793dce9dae
|
data/CHANGELOG.md
CHANGED
|
@@ -3,10 +3,10 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |s|
|
|
5
5
|
s.name = "fluent-plugin-hash-forward"
|
|
6
|
-
s.version = "0.3.
|
|
6
|
+
s.version = "0.3.2"
|
|
7
7
|
s.authors = ["Ryosuke IWANAGA", "Naotoshi Seo"]
|
|
8
8
|
s.email = ["riywo.jp@gmail.com", "sonots@gmail.com"]
|
|
9
|
-
s.homepage = "https://github.com/
|
|
9
|
+
s.homepage = "https://github.com/riywo/fluent-plugin-hash-forward"
|
|
10
10
|
s.summary = %q{Fluentd plugin to keep forwarding messsages of a specific tag pattern to a specific node}
|
|
11
11
|
s.description = s.summary
|
|
12
12
|
s.licenses = ["MIT"]
|
|
@@ -3,6 +3,11 @@ require 'fluent/plugin/out_forward'
|
|
|
3
3
|
class Fluent::HashForwardOutput < Fluent::ForwardOutput
|
|
4
4
|
Fluent::Plugin.register_output('hash_forward', self)
|
|
5
5
|
|
|
6
|
+
# To support log_level option implemented by Fluentd v0.10.43
|
|
7
|
+
unless method_defined?(:log)
|
|
8
|
+
define_method("log") { $log }
|
|
9
|
+
end
|
|
10
|
+
|
|
6
11
|
config_param :hash_key_slice, :string, :default => nil
|
|
7
12
|
config_param :keepalive, :bool, :default => false
|
|
8
13
|
config_param :keepalive_time, :time, :default => nil # infinite
|
|
@@ -145,7 +150,7 @@ class Fluent::HashForwardOutput < Fluent::ForwardOutput
|
|
|
145
150
|
sock_write(sock, tag, chunk)
|
|
146
151
|
node.heartbeat(false)
|
|
147
152
|
rescue Errno::EPIPE, Errno::ECONNRESET, Errno::ECONNABORTED, Errno::ETIMEDOUT => e
|
|
148
|
-
|
|
153
|
+
log.warn "out_hash_forward: #{e.class} #{e.message}"
|
|
149
154
|
sock = reconnect(node)
|
|
150
155
|
retry
|
|
151
156
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fluent-plugin-hash-forward
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryosuke IWANAGA
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2014-02-04 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: fluentd
|
|
@@ -99,7 +99,7 @@ files:
|
|
|
99
99
|
- lib/fluent/plugin/out_hash_forward.rb
|
|
100
100
|
- spec/out_hash_forward_spec.rb
|
|
101
101
|
- spec/spec_helper.rb
|
|
102
|
-
homepage: https://github.com/
|
|
102
|
+
homepage: https://github.com/riywo/fluent-plugin-hash-forward
|
|
103
103
|
licenses:
|
|
104
104
|
- MIT
|
|
105
105
|
metadata: {}
|