fluent-plugin-route 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +31 -19
- data/fluent-plugin-route.gemspec +3 -1
- data/lib/fluent/plugin/out_route.rb +4 -0
- metadata +22 -11
- data/lib/fluent-plugin-route.rb +0 -9
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 990b5590b8059873e1745f9de0baaa48c31dffae
|
4
|
+
data.tar.gz: 78e89770687de378e62111e518e26830177f63dc
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b9777a334c15588f9c2bf3abb25f8a3ced21e19f323e0c336841faea8cecf81486befbaf24b1f53f29f84c7759fe9da1068cf27fee445c5b8381fb9894d2c9cb
|
7
|
+
data.tar.gz: 19eebb98f6cf99d1e3a2d4222d5f2ad0c5382c5e4291e84f3fa0d3112d1b1b83ac4bcd563b30a713edec72a2eae323d393ead9992fc4bd0c8869738690a446fa
|
data/README.md
CHANGED
@@ -1,29 +1,41 @@
|
|
1
|
-
#
|
1
|
+
# fluent-plugin-route
|
2
2
|
|
3
|
-
|
3
|
+
Fluentd output plugin to rewrite tags to route messages.
|
4
4
|
|
5
|
-
##
|
5
|
+
## Configuration
|
6
6
|
|
7
|
-
|
7
|
+
Configuration example:
|
8
8
|
|
9
|
-
|
9
|
+
<match worker.**>
|
10
|
+
type route
|
11
|
+
remove_tag_prefix worker
|
12
|
+
<route **>
|
13
|
+
add_tag_prefix metrics.event
|
14
|
+
copy
|
15
|
+
</route>
|
16
|
+
<route **>
|
17
|
+
add_tag_prefix backup
|
18
|
+
copy
|
19
|
+
</route>
|
20
|
+
</match>
|
10
21
|
|
11
|
-
|
22
|
+
<match metrics.event.**>
|
23
|
+
type stdout
|
24
|
+
</match>
|
12
25
|
|
13
|
-
|
26
|
+
<match backup.**>
|
27
|
+
type file
|
28
|
+
path /var/log/fluent/bakcup
|
29
|
+
</match>
|
14
30
|
|
15
|
-
|
31
|
+
## TODO
|
16
32
|
|
17
|
-
|
33
|
+
* tests
|
18
34
|
|
19
|
-
##
|
35
|
+
## Copyright
|
20
36
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
|
-
3. Commit your changes (`git commit -am 'Added some feature'`)
|
28
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
29
|
-
5. Create new Pull Request
|
37
|
+
* Copyright
|
38
|
+
* The original version of `out_route` is written by @frsyuki.
|
39
|
+
* TAGOMORI Satoshi (tagomoris)
|
40
|
+
* License
|
41
|
+
* Apache License, Version 2.0
|
data/fluent-plugin-route.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
Gem::Specification.new do |gem|
|
3
3
|
gem.name = "fluent-plugin-route"
|
4
|
-
gem.version = "0.1.
|
4
|
+
gem.version = "0.1.1"
|
5
5
|
gem.authors = ["TAGOMORI Satoshi", "FURUHASHI Sadayuki"]
|
6
6
|
gem.email = ["tagomoris@gmail.com", "frsyuki@gmail.com"]
|
7
7
|
gem.summary = %q{Fluentd plugin to route messages in fluentd processes}
|
@@ -12,4 +12,6 @@ Gem::Specification.new do |gem|
|
|
12
12
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
13
13
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
14
14
|
gem.require_paths = ["lib"]
|
15
|
+
|
16
|
+
gem.add_runtime_dependency "fluent-mixin-config-placeholders"
|
15
17
|
end
|
@@ -15,12 +15,16 @@
|
|
15
15
|
# See the License for the specific language governing permissions and
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
|
+
require 'fluent/mixin/config_placeholders'
|
19
|
+
|
18
20
|
module Fluent
|
19
21
|
|
20
22
|
|
21
23
|
class RouteOutput < MultiOutput
|
22
24
|
Plugin.register_output('route', self)
|
23
25
|
|
26
|
+
include Fluent::Mixin::ConfigPlaceholders
|
27
|
+
|
24
28
|
class Route
|
25
29
|
include Configurable
|
26
30
|
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-route
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- TAGOMORI Satoshi
|
@@ -10,8 +9,22 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date: 2013-
|
14
|
-
dependencies:
|
12
|
+
date: 2013-04-26 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: fluent-mixin-config-placeholders
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - '>='
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '0'
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - '>='
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '0'
|
15
28
|
description: This is copy of out_route.rb originally written by frsyuki
|
16
29
|
email:
|
17
30
|
- tagomoris@gmail.com
|
@@ -26,30 +39,28 @@ files:
|
|
26
39
|
- README.md
|
27
40
|
- Rakefile
|
28
41
|
- fluent-plugin-route.gemspec
|
29
|
-
- lib/fluent-plugin-route.rb
|
30
42
|
- lib/fluent/plugin/out_route.rb
|
31
43
|
homepage: https://github.com/tagomoris/fluent-plugin-route
|
32
44
|
licenses: []
|
45
|
+
metadata: {}
|
33
46
|
post_install_message:
|
34
47
|
rdoc_options: []
|
35
48
|
require_paths:
|
36
49
|
- lib
|
37
50
|
required_ruby_version: !ruby/object:Gem::Requirement
|
38
|
-
none: false
|
39
51
|
requirements:
|
40
|
-
- -
|
52
|
+
- - '>='
|
41
53
|
- !ruby/object:Gem::Version
|
42
54
|
version: '0'
|
43
55
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
44
|
-
none: false
|
45
56
|
requirements:
|
46
|
-
- -
|
57
|
+
- - '>='
|
47
58
|
- !ruby/object:Gem::Version
|
48
59
|
version: '0'
|
49
60
|
requirements: []
|
50
61
|
rubyforge_project:
|
51
|
-
rubygems_version:
|
62
|
+
rubygems_version: 2.0.0
|
52
63
|
signing_key:
|
53
|
-
specification_version:
|
64
|
+
specification_version: 4
|
54
65
|
summary: Fluentd plugin to route messages in fluentd processes
|
55
66
|
test_files: []
|