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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 887fb6cd62de2ad184f1c5b783a4b8b329234a49
4
- data.tar.gz: 601b0839d9ab6355986af97bee0ca2093f2ddd68
3
+ metadata.gz: c932489d8ea96944072ba699ae7fe54a695309b6
4
+ data.tar.gz: 0a77979b26fc706bbfb79d0144da89f0adf120bb
5
5
  SHA512:
6
- metadata.gz: 672a1ef989dc0fca20fd54db9fc510ed25ed777ad9ddc19db0b8967ff1df2d2d4bd7b550789d07ece336a462a976b5ae9c5ace98c82c0e42b8b9e433e58e1e74
7
- data.tar.gz: 107e36c6b65f0cdc8b5e0dafb8d119bb5c6576cc595884e7d2d452358f7ad34889b2dbd0acee87de0e064f9cfc8cfd110b581ea81119f880708b33824cc04520
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', 'payload'].each { |group|
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'])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-mule
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Martinez