fluent-plugin-text_to_json 0.1.38 → 0.1.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5c9a76dcaa8370d0c7af90c46a42fcb51baab55d
4
- data.tar.gz: 26b9395ad694cc2b331487bb46361f17ff7677ab
3
+ metadata.gz: 5ee503f7074abbdb611e5c290931e9f3107687b7
4
+ data.tar.gz: 67a47cd81367d6f4010c10e055c0b6fdf48096ef
5
5
  SHA512:
6
- metadata.gz: 84ff523c02c3689897b0e3f581628e4f1bff935c47ddb426715a14788b3f397e5854dce14cc95690feec15d7a46f6db8714d7a56f86b3dd03b03990f68c61f0f
7
- data.tar.gz: 71d1b2e3fdcc8e2c287470df1e22f9fca8fdf37a528cd223c35797b446067c138d11b0e6340339929cae56347969f8f2543a6e6e55e6af3d832e234784711cb1
6
+ metadata.gz: af2ecdd95faf4cc0af6211ff774d2b71ca12796749bff0402215c5919ae68f01323f0dcf5e8a815f343fd25705b42b3da0193c625480198c0d6b6a3cf8dd5562
7
+ data.tar.gz: 819913d04054ce05c3b742793d25ceb93a741d0aa42866b4dfc5445c938371531b91a1e81641b92747f0a7e630a37670df5de4aa5c56d0d7d9606cd48f7203ab
@@ -16,13 +16,13 @@ module Fluent
16
16
 
17
17
  def format(tag, time, record)
18
18
 
19
- tmp_field = record.values.join("").split(@field_splitter)
19
+ tmp_field = record["message"].join("").split(@field_splitter)
20
20
 
21
21
  tmp_field[1] = @field_splitter + tmp_field[1]
22
22
 
23
23
 
24
24
  #sdr parameters to json format
25
- tmp_field[0] = tmp_field[0].split("\\n")
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("\\n")
35
+ head, *tail = tmp_field[1].split("\\\\n")
36
36
  head = head.split("|")
37
37
  head = head.map{|field| "\""+field+"\""}
38
38
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-text_to_json
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.38
4
+ version: 0.1.39
5
5
  platform: ruby
6
6
  authors:
7
7
  - minwoo lee