fluent-plugin-rewrite 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/fluent-plugin-rewrite.gemspec +1 -1
- data/lib/fluent/plugin/out_rewrite.rb +7 -10
- metadata +11 -17
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9b536a9aab372542917eced071b3774a708317be
|
4
|
+
data.tar.gz: d9b018a42595b8d84686d0b8d0cb8d89f486004a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 615dac220c4ce5d8f489cd5fa0c6d395ed384822c21e3f7db00182cb34cc8e1c0a243d729b00567b56218d23c1c0c56d5e725951912527e5a022663d9b6f2a42
|
7
|
+
data.tar.gz: 40b9fb769c95e2566976cd666a2582cd30a8587da41fc4f9c5242719ec01b0b897ea2266b9eca47eb755e26df4f0adff3357c765bc1b9357a3b8615aac80b6f0
|
@@ -19,18 +19,15 @@ module Fluent
|
|
19
19
|
@added_prefix_string = @add_prefix + '.'
|
20
20
|
end
|
21
21
|
|
22
|
-
@rules = conf.elements.select { |element|
|
23
|
-
|
24
|
-
|
25
|
-
if element.has_key?("pattern")
|
26
|
-
element["regex"] = Regexp.new(element["pattern"])
|
27
|
-
end
|
28
|
-
|
29
|
-
element.keys.each do |k|
|
22
|
+
@rules = conf.elements.select {|element| element.name == 'rule' }.map do |element|
|
23
|
+
rule = {}
|
24
|
+
element.keys.each do |key|
|
30
25
|
# read and throw away to supress unread configuration warning
|
31
|
-
element[
|
26
|
+
rule[key] = element[key]
|
32
27
|
end
|
33
|
-
|
28
|
+
rule["regex"] = Regexp.new(element["pattern"]) if element.has_key?("pattern")
|
29
|
+
rule
|
30
|
+
end
|
34
31
|
end
|
35
32
|
|
36
33
|
def start
|
metadata
CHANGED
@@ -1,46 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-rewrite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.12
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Kentaro Kuribayashi
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-12-16 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rake
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: fluentd
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
description: Fluentd plugin to rewrite tags/values along with pattern matching and
|
@@ -63,27 +58,26 @@ files:
|
|
63
58
|
homepage: http://github.com/kentaro/fluent-plugin-rewrite
|
64
59
|
licenses:
|
65
60
|
- MIT
|
61
|
+
metadata: {}
|
66
62
|
post_install_message:
|
67
63
|
rdoc_options: []
|
68
64
|
require_paths:
|
69
65
|
- lib
|
70
66
|
required_ruby_version: !ruby/object:Gem::Requirement
|
71
|
-
none: false
|
72
67
|
requirements:
|
73
|
-
- -
|
68
|
+
- - '>='
|
74
69
|
- !ruby/object:Gem::Version
|
75
70
|
version: '0'
|
76
71
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
|
-
none: false
|
78
72
|
requirements:
|
79
|
-
- -
|
73
|
+
- - '>='
|
80
74
|
- !ruby/object:Gem::Version
|
81
75
|
version: '0'
|
82
76
|
requirements: []
|
83
77
|
rubyforge_project:
|
84
|
-
rubygems_version:
|
78
|
+
rubygems_version: 2.0.14
|
85
79
|
signing_key:
|
86
|
-
specification_version:
|
80
|
+
specification_version: 4
|
87
81
|
summary: Fluentd plugin to rewrite tags/values along with pattern matching and re-emit
|
88
82
|
them.
|
89
83
|
test_files:
|