fluent-plugin-text_to_json 0.1.48 → 0.1.49
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/formatter_text_to_json.rb +2 -2
- 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: f04884eb1127748309db93185f665ca8fb7f473b
|
4
|
+
data.tar.gz: 63b1010de68a75842e8edd9daa2cf337ea976bdd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b7489e3a15168f5da58be407347e01015d2aafc3ed203519e82188ecc9d5127db4f1b9419d4d32f7d3ba8b7688b9da5fcf6d6f28747158334c50f3224d9a6e2
|
7
|
+
data.tar.gz: 3ad712802f014e6bae6dca2081552a577488206ad9399f7574794a00fcd8903e401844a6124bbb50d16198a93e5de3d97aafb98bf9ac07d522d9a0dcca0f81da
|
@@ -22,7 +22,7 @@ module Fluent
|
|
22
22
|
|
23
23
|
|
24
24
|
#sdr parameters to json format
|
25
|
-
tmp_field[0] = tmp_field[0].split("
|
25
|
+
tmp_field[0] = tmp_field[0].split("\\n")
|
26
26
|
tmp_field[0] = tmp_field[0].map{|value| (value == "")? nil:value} # HBase plugin ignores nil values
|
27
27
|
tmp_field[0] = tmp_field[0].map{|value| (value == nil)? nil:"\""+value+"\""}
|
28
28
|
|
@@ -32,7 +32,7 @@ module Fluent
|
|
32
32
|
|
33
33
|
#factor paramters to json format
|
34
34
|
#Set factor ID as a second field's name
|
35
|
-
head, *tail = tmp_field[1].split("
|
35
|
+
head, *tail = tmp_field[1].split("\\n")
|
36
36
|
head = head.split("|")
|
37
37
|
head = head.map{|field| "\""+field+"\""}
|
38
38
|
|