fluent-plugin-parse_request_body 0.0.10 → 0.0.11
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b52ddd5d33945ea68843cd2ca453a2b22c870e698f7d80de859fffa9a91088f
|
4
|
+
data.tar.gz: 51c8f7de8e80a59d4f087c28b48979b093e7b5f6297f3a8445538bb4e13035f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 447195188d7d5c7176ccbeeb34eaaa162b13d3a710a01189cf9e8dfda6ab2e55feb24b1efed031dfff90c99be12e398fd72903521a9c67b3977f3fde3f4ab290
|
7
|
+
data.tar.gz: a12496ca75a8c0a094108dbe5005ccdcf4cb1cd646cdd3ea8805cca6ef98047bc4998ad2f70bc691c35048719f6c8576304b5d0371df71080d9ef0c48b96694a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |gem|
|
2
2
|
gem.name = 'fluent-plugin-parse_request_body'
|
3
|
-
gem.version = '0.0.
|
3
|
+
gem.version = '0.0.11'
|
4
4
|
gem.authors = ['EkiSong']
|
5
5
|
gem.email = ['yifriday0614@gmail.com']
|
6
6
|
gem.homepage = 'https://github.com/yifriday/fluent-plugin-parse_request_body.git'
|
@@ -60,7 +60,6 @@ module Fluent::Plugin
|
|
60
60
|
|
61
61
|
def replace_record_by_key(record)
|
62
62
|
return record unless record[@replace_key]
|
63
|
-
replace_value = record[@replace_key]
|
64
63
|
value = record[@array_value_key]
|
65
64
|
record[@replace_key] = value if value
|
66
65
|
record.delete(@array_value_key)
|
@@ -118,8 +117,10 @@ module Fluent::Plugin
|
|
118
117
|
record[@array_value_key] = "#{placeholder}";
|
119
118
|
end
|
120
119
|
|
121
|
-
|
122
|
-
|
120
|
+
if @replace_key
|
121
|
+
replace_record_by_key(record)
|
122
|
+
end
|
123
|
+
|
123
124
|
end
|
124
125
|
end
|
125
126
|
end
|