fluent-plugin-forest 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/example/file.conf +16 -0
- data/fluent-plugin-forest.gemspec +1 -1
- data/lib/fluent/plugin/out_forest.rb +5 -7
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb9a44f8ce959ffd5909bbeb3c82582b7a179b21
|
4
|
+
data.tar.gz: 4963053b5c23586b2d635c0494e57b32d08c32c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38e8599216a9f67ead49fe87e12d9bd304dc4d42bafc9bb6e3213ce24cdf95dbb6d58b364aaaf5b2c3a6668f00f1325562a2311c6c3a02f3d5959954da75adbd
|
7
|
+
data.tar.gz: 0aecbb204bbf364f0d1076fc32c95cfa02ad115d33562f009225d5660c10bdabac486df187e73493a6b113883d0a79e0db8fa9b120820a357211b4d696fbecfa
|
data/example/file.conf
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
<source>
|
2
|
+
@type dummy
|
3
|
+
tag test.dummy
|
4
|
+
dummy {"message":"yaaaaaaaaaaaaay"}
|
5
|
+
rate 3
|
6
|
+
</source>
|
7
|
+
|
8
|
+
<match test.*>
|
9
|
+
@type forest
|
10
|
+
subtype file
|
11
|
+
<template>
|
12
|
+
path /tmp/file_${tag}
|
13
|
+
buffer_type file
|
14
|
+
flush_interval 1s
|
15
|
+
</template>
|
16
|
+
</match>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
Gem::Specification.new do |gem|
|
3
3
|
gem.name = "fluent-plugin-forest"
|
4
|
-
gem.version = "0.3.
|
4
|
+
gem.version = "0.3.2"
|
5
5
|
gem.authors = ["TAGOMORI Satoshi"]
|
6
6
|
gem.email = ["tagomoris@gmail.com"]
|
7
7
|
gem.description = %q{create sub-plugin dynamically per tags, with template configuration and parameters}
|
@@ -131,6 +131,7 @@ class Fluent::ForestOutput < Fluent::MultiOutput
|
|
131
131
|
output = Fluent::Plugin.new_output(@subtype)
|
132
132
|
output.configure(spec(tag))
|
133
133
|
output.start
|
134
|
+
output.after_start if output.respond_to?(:after_start)
|
134
135
|
@mapping[tag] = output
|
135
136
|
@outputs.push(output)
|
136
137
|
end
|
@@ -167,14 +168,11 @@ class Fluent::ForestOutput < Fluent::MultiOutput
|
|
167
168
|
unless output
|
168
169
|
output = plant(tag)
|
169
170
|
end
|
170
|
-
if output
|
171
|
-
|
172
|
-
output.emit_events(tag, es)
|
173
|
-
else
|
174
|
-
output.emit(tag, es, chain)
|
175
|
-
end
|
171
|
+
if output.respond_to?(:emit_events)
|
172
|
+
output.emit_events(tag, es)
|
176
173
|
else
|
177
|
-
chain
|
174
|
+
output.emit(tag, es, chain)
|
178
175
|
end
|
176
|
+
chain.next
|
179
177
|
end
|
180
178
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-forest
|
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
|
- TAGOMORI Satoshi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -66,6 +66,7 @@ files:
|
|
66
66
|
- LICENSE.txt
|
67
67
|
- README.md
|
68
68
|
- Rakefile
|
69
|
+
- example/file.conf
|
69
70
|
- example/sample.conf
|
70
71
|
- fluent-plugin-forest.gemspec
|
71
72
|
- lib/fluent/plugin/out_forest.rb
|