fluent-plugin-ltsv-parser 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
Gem::Specification.new do |gem|
|
3
3
|
gem.name = "fluent-plugin-ltsv-parser"
|
4
|
-
gem.version = "0.0.
|
4
|
+
gem.version = "0.0.4"
|
5
5
|
gem.authors = ["anarcher"]
|
6
6
|
gem.email = ["anarcher@gmail.com"]
|
7
7
|
gem.description = %q{fluentd plugin to ltsv parse single field, or to combine log structure into single field}
|
@@ -47,7 +47,10 @@ class Fluent::ParserOutput < Fluent::Output
|
|
47
47
|
|
48
48
|
def filter(record)
|
49
49
|
if @filter_in.length > 0 then
|
50
|
-
record.select{ |x| @filter_in.include? x }
|
50
|
+
_record = record.select{ |x| @filter_in.include? x }
|
51
|
+
if _record.keys.length == @filter_in.length then
|
52
|
+
return _record
|
53
|
+
end
|
51
54
|
end
|
52
55
|
nil
|
53
56
|
end
|