fluent-plugin-parser 0.4.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fluent-plugin-parser.gemspec +2 -2
- data/lib/fluent/plugin/out_deparser.rb +5 -5
- data/lib/fluent/plugin/out_parser.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd40a834ddb84cf70b817ca1eeb890549786afdf
|
4
|
+
data.tar.gz: ec978eccafdcbde7569284036ef907b53cd0f2b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b8098ed0973e33d060dcdc6e07251d462cb70d79795b9abf1b294c89e7db4c9ac48ac5f2df11fa4df7c5fc521c6f6443aeae355cd5255bdd405be435430ceb2
|
7
|
+
data.tar.gz: a055940d6a07d97ba4e5438af542fb9cdf400f46115ce568eccdcb23497c3fcbf19bade3fae1a2e93e55f9c5f60d6073f2ea872a9c8947c3ca2642cce663d301
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
Gem::Specification.new do |gem|
|
3
3
|
gem.name = "fluent-plugin-parser"
|
4
|
-
gem.version = "0.
|
4
|
+
gem.version = "0.5.0"
|
5
5
|
gem.authors = ["TAGOMORI Satoshi"]
|
6
6
|
gem.email = ["tagomoris@gmail.com"]
|
7
7
|
gem.description = %q{fluentd plugin to parse single field, or to combine log structure into single field}
|
@@ -16,5 +16,5 @@ Gem::Specification.new do |gem|
|
|
16
16
|
|
17
17
|
gem.add_development_dependency "test-unit"
|
18
18
|
gem.add_development_dependency "rake"
|
19
|
-
gem.add_runtime_dependency "fluentd", "
|
19
|
+
gem.add_runtime_dependency "fluentd", "~> 0.12.0"
|
20
20
|
end
|
@@ -13,7 +13,7 @@ class Fluent::DeparserOutput < Fluent::Output
|
|
13
13
|
es.each {|time,record|
|
14
14
|
keys = record.keys.shuffle
|
15
15
|
new_record = {@key_name => keys.map{|k| record[k]}.join(' ')}
|
16
|
-
|
16
|
+
router.emit(@tag, time, new_record)
|
17
17
|
}
|
18
18
|
chain.next
|
19
19
|
end
|
@@ -68,8 +68,8 @@ class Fluent::DeparserOutput < Fluent::Output
|
|
68
68
|
if @remove_prefix and
|
69
69
|
( (tag.start_with?(@removed_prefix_string) and tag.length > @removed_length) or tag == @remove_prefix)
|
70
70
|
tag = tag[@removed_length..-1]
|
71
|
-
end
|
72
|
-
if @add_prefix
|
71
|
+
end
|
72
|
+
if @add_prefix
|
73
73
|
tag = if tag and tag.length > 0
|
74
74
|
@added_prefix_string + tag
|
75
75
|
else
|
@@ -81,12 +81,12 @@ class Fluent::DeparserOutput < Fluent::Output
|
|
81
81
|
if @reserve_data
|
82
82
|
es.each {|time,record|
|
83
83
|
record.update({@key_name => (@format % @format_key_names.map{|k| record[k]})})
|
84
|
-
|
84
|
+
router.emit(tag, time, record)
|
85
85
|
}
|
86
86
|
else
|
87
87
|
es.each {|time,record|
|
88
88
|
new_record = {@key_name => (@format % @format_key_names.map{|k| record[k]})}
|
89
|
-
|
89
|
+
router.emit(tag, time, new_record)
|
90
90
|
}
|
91
91
|
end
|
92
92
|
chain.next
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TAGOMORI Satoshi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-unit
|
@@ -42,16 +42,16 @@ dependencies:
|
|
42
42
|
name: fluentd
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 0.12.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
54
|
+
version: 0.12.0
|
55
55
|
description: fluentd plugin to parse single field, or to combine log structure into
|
56
56
|
single field
|
57
57
|
email:
|