fluent-plugin-flatten 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/fluent-plugin-flatten.gemspec +1 -1
- data/lib/fluent/plugin/out_flatten.rb +3 -3
- metadata +1 -1
@@ -39,7 +39,7 @@ module Fluent
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def flatten(record)
|
42
|
-
|
42
|
+
flattened = {}
|
43
43
|
|
44
44
|
if record.has_key?(key)
|
45
45
|
hash = JSON.parse(record[key])
|
@@ -63,10 +63,10 @@ module Fluent
|
|
63
63
|
flattened
|
64
64
|
end
|
65
65
|
|
66
|
-
|
66
|
+
flattened = processor.call(key, hash)
|
67
67
|
end
|
68
68
|
|
69
|
-
|
69
|
+
flattened
|
70
70
|
end
|
71
71
|
end
|
72
72
|
end
|