fluent-plugin-reemit 0.0.1 → 0.0.2

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: b0bd1173d45c889368133e764d37dfa6ad415a6c
4
- data.tar.gz: fe491e0d1d1fd60d4dca49e396c850b2686b4edc
3
+ metadata.gz: 8885b45c565d0a5858ed8d4ba90019ee9a95fd5e
4
+ data.tar.gz: 51f3ae448c2c43b1ecbf6fe817b5087e603fa53a
5
5
  SHA512:
6
- metadata.gz: d8c65a9eeb765e59180277440f064e52f34be207d1e184a744ca76f3598967b4d5540af2183681086ba40c597097e85c405c4ea010e7a917502f9818dbcd9ec1
7
- data.tar.gz: b0cc9a6286c0ec057cf5bb52ecf7e0f97b56aa3b42d21eb5eee3d09081dd5f58ed18665897baf94a49225904a90bacfff48ededbb4ca97566b234ada0aacd6c1
6
+ metadata.gz: 8f9edc2ad37196e26d83536d15940f0d4fefe1cd678d75974e3f6c6f1c716966f4b8e45642b84937d816326741f237314edfcf837c3bb9921e1f4765c914e149
7
+ data.tar.gz: cc6575d5e057680a10074b770cd31ff7389de4a17f96809d819b4d9eee3009277836a83cebefb7e8fb210602414b30aa1fd8d3932f09b2c2ddd304ea041335ce
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 0.0.2 (2014/01/23)
2
+
3
+ Enhancement:
4
+
5
+ * Support all subclasses of MultiOutput such as out_copy and fluent-plugin-measure-time
6
+
1
7
  ## 0.0.1 (2014/01/21)
2
8
 
3
9
  First release
10
+
data/Gemfile CHANGED
@@ -1,3 +1,4 @@
1
1
  source "http://rubygems.org"
2
2
 
3
3
  gemspec
4
+ gem 'fluent-plugin-flowcounter' # for examples
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 stdout
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 file
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.1"
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.class == CopyOutput and m.output.outputs.include?(self)
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.1
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-21 00:00:00.000000000 Z
11
+ date: 2014-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd