fluent-plugin-gelf-hs 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/lib/fluent/gelf_util.rb +7 -0
- metadata +4 -4
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/fluent/gelf_util.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# encoding=utf-8
|
1
2
|
module Fluent
|
2
3
|
module GelfUtil
|
3
4
|
|
@@ -87,6 +88,12 @@ module Fluent
|
|
87
88
|
def make_json(gelfentry,conf)
|
88
89
|
gelfentry['version'] = '1.0'
|
89
90
|
|
91
|
+
gelfentry.each_pair do |k,v|
|
92
|
+
if v.is_a?(String)
|
93
|
+
gelfentry[k] = v.force_encoding('UTF-8')
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
90
97
|
gelfentry.to_json + ( conf.is_a?(Hash) and conf.key?(:record_separator) ? conf[:record_separator] : "\0" )
|
91
98
|
end
|
92
99
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-gelf-hs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 4
|
10
|
+
version: 1.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Alex Yamauchi
|
@@ -42,7 +42,7 @@ cert_chain:
|
|
42
42
|
2Zk648Ep9HVPKmwoVuB75+xEQw==
|
43
43
|
-----END CERTIFICATE-----
|
44
44
|
|
45
|
-
date: 2017-
|
45
|
+
date: 2017-08-08 00:00:00 Z
|
46
46
|
dependencies:
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: fluentd
|
metadata.gz.sig
CHANGED
Binary file
|