fluent-plugin-mule 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fluent/plugin/filter_mule.rb +6 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c932489d8ea96944072ba699ae7fe54a695309b6
|
4
|
+
data.tar.gz: 0a77979b26fc706bbfb79d0144da89f0adf120bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: edfdf6cfdbd002d9e43df0c736a6d3b0d3cf2171cd1a3b15451ed43e586255e569b82a62bfc41044852355576856614abbececda1a11a08eed29a31994625746
|
7
|
+
data.tar.gz: 6ea5a6384fb7c6ac0a24b22deff3d25e5e87b51243c0e6846fb61ec63ec49824deada71f06e084ce4615ec4e6d7594b00693c9ba3e7fa91bd943a883a9579c97
|
@@ -59,9 +59,14 @@ module Fluent
|
|
59
59
|
return record
|
60
60
|
end
|
61
61
|
|
62
|
-
['log_level', 'log_time', 'thread', 'position', 'kv_pairs'
|
62
|
+
['log_level', 'log_time', 'thread', 'position', 'kv_pairs'].each { |group|
|
63
63
|
updateRecord(record, match, group, group == 'kv_pairs')
|
64
64
|
}
|
65
|
+
|
66
|
+
if (match.names.include? 'payload') && !match['payload'].nil?
|
67
|
+
k, v = match['payload'].split('=', 2)
|
68
|
+
record[@prefix + k] = v
|
69
|
+
end
|
65
70
|
|
66
71
|
if @time_parse && !record['log_time'].nil?
|
67
72
|
new_time = @time_parser.parse(record['mule_log_time'])
|