fluent-plugin-reemit 0.0.1 → 0.0.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 +7 -0
- data/Gemfile +1 -0
- data/README.md +4 -4
- data/examples/reemit.conf +7 -3
- data/fluent-plugin-reemit.gemspec +1 -1
- data/lib/fluent/plugin/out_reemit.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8885b45c565d0a5858ed8d4ba90019ee9a95fd5e
|
4
|
+
data.tar.gz: 51f3ae448c2c43b1ecbf6fe817b5087e603fa53a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f9edc2ad37196e26d83536d15940f0d4fefe1cd678d75974e3f6c6f1c716966f4b8e45642b84937d816326741f237314edfcf837c3bb9921e1f4765c914e149
|
7
|
+
data.tar.gz: cc6575d5e057680a10074b770cd31ff7389de4a17f96809d819b4d9eee3009277836a83cebefb7e8fb210602414b30aa1fd8d3932f09b2c2ddd304ea041335ce
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -18,6 +18,10 @@ This example applies [flowcounter](https://github.com/tagomoris/fluent-plugin-fl
|
|
18
18
|
But, the re-emitted messages will skip the identical match directive (the first one) to avoid an infinity loop.
|
19
19
|
|
20
20
|
```apache
|
21
|
+
<match flowcount>
|
22
|
+
type stdout
|
23
|
+
</match>
|
24
|
+
|
21
25
|
<match **>
|
22
26
|
type copy
|
23
27
|
<store>
|
@@ -29,10 +33,6 @@ But, the re-emitted messages will skip the identical match directive (the first
|
|
29
33
|
</store>
|
30
34
|
</match>
|
31
35
|
|
32
|
-
<match flowcount>
|
33
|
-
type stdout
|
34
|
-
</match>
|
35
|
-
|
36
36
|
<match **>
|
37
37
|
type stdout
|
38
38
|
</match>
|
data/examples/reemit.conf
CHANGED
@@ -4,10 +4,15 @@
|
|
4
4
|
tag gc_stat
|
5
5
|
</source>
|
6
6
|
|
7
|
+
<match flowcount>
|
8
|
+
type stdout
|
9
|
+
</match>
|
10
|
+
|
7
11
|
<match **>
|
8
12
|
type copy
|
9
13
|
<store>
|
10
|
-
type
|
14
|
+
type flowcounter
|
15
|
+
count_keys *
|
11
16
|
</store>
|
12
17
|
<store>
|
13
18
|
type reemit # re-emitted messages are not absorbed by <match **>
|
@@ -15,6 +20,5 @@
|
|
15
20
|
</match>
|
16
21
|
|
17
22
|
<match **>
|
18
|
-
type
|
19
|
-
path gc_stat.txt
|
23
|
+
type stdout
|
20
24
|
</match>
|
@@ -3,7 +3,7 @@ $:.push File.expand_path('../lib', __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.name = "fluent-plugin-reemit"
|
6
|
-
gem.version = "0.0.
|
6
|
+
gem.version = "0.0.2"
|
7
7
|
gem.authors = ["Naotoshi Seo"]
|
8
8
|
gem.email = "sonots@gmail.com"
|
9
9
|
gem.homepage = "https://github.com/sonots/fluent-plugin-reemit"
|
@@ -52,7 +52,7 @@ module Fluent
|
|
52
52
|
# </match>
|
53
53
|
def ignore_self_match(m, tag)
|
54
54
|
return false if m.output == self
|
55
|
-
return false if m.output.
|
55
|
+
return false if m.output.kind_of?(MultiOutput) and m.output.outputs.include?(self)
|
56
56
|
m.match(tag)
|
57
57
|
end
|
58
58
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-reemit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naotoshi Seo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|