fluent-plugin-gelf-hs 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/README.md +2 -0
- data/fluent-plugin-gelf-hs.gemspec +2 -9
- data/lib/fluent/plugin/out_gelf.rb +11 -1
- metadata +4 -4
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/README.md
CHANGED
@@ -16,6 +16,8 @@ gem install fluent-plugin-gelf-hs
|
|
16
16
|
host <remote GELF host>
|
17
17
|
port <remote GELF port>
|
18
18
|
protocol <tcp or udp (default)>
|
19
|
+
tls <true or false (default)>
|
20
|
+
tls_options <{} (default)> for options see https://github.com/graylog-labs/gelf-rb/blob/72916932b789f7a6768c3cdd6ab69a3c942dbcef/lib/gelf/transport/tcp_tls.rb#L7-L12
|
19
21
|
[ fluent buffered output plugin configuration ]
|
20
22
|
</match>
|
21
23
|
```
|
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "fluent-plugin-gelf-hs"
|
6
|
-
s.version
|
6
|
+
s.version = ENV.key?('RUBYGEM_VERSION') ? ENV['RUBYGEM_VERSION'] : '1.0.3'
|
7
7
|
s.authors = ["Alex Yamauchi", "Eric Searcy"]
|
8
8
|
s.email = ["oss@hotschedules.com"]
|
9
9
|
s.homepage = "https://github.com/bodhi-space/fluent-plugin-gelf-hs"
|
@@ -21,13 +21,6 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.add_runtime_dependency "fluentd"
|
22
22
|
s.add_runtime_dependency "gelf", ">= 2.0.0"
|
23
23
|
|
24
|
-
|
25
|
-
## This type of metadata is not supported by gem, but can be incorporated
|
26
|
-
## by other packaging systems (ie. rpm).
|
27
|
-
#s.metadata = {
|
28
|
-
# 'provides' => 'fluent-plugin-gelf = 0.1.0',
|
29
|
-
# 'conflicts' => 'fluent-plugin-gelf'
|
30
|
-
#}
|
31
|
-
s.signing_key = File.expand_path('~/certs/oss@hotschedules.com.key') if $0 =~ /gem\z/
|
24
|
+
s.signing_key = File.expand_path( ENV.key?('RUBYGEM_SIGNING_KEY') ? ENV['RUBYGEM_SIGNING_KEY'] : '~/certs/oss@hotschedules.com.key' ) if $0 =~ /\bgem[\.0-9]*\z/
|
32
25
|
s.cert_chain = %w[certs/oss@hotschedules.com.cert]
|
33
26
|
end
|
@@ -13,6 +13,8 @@ module Fluent
|
|
13
13
|
config_param :host, :string, :default => nil
|
14
14
|
config_param :port, :integer, :default => 12201
|
15
15
|
config_param :protocol, :string, :default => 'udp'
|
16
|
+
config_param :tls, :bool, :default => false
|
17
|
+
config_param :tls_options, :hash, :default => {}
|
16
18
|
|
17
19
|
def initialize
|
18
20
|
super
|
@@ -35,7 +37,15 @@ module Fluent
|
|
35
37
|
def start
|
36
38
|
super
|
37
39
|
|
38
|
-
|
40
|
+
options = {:facility => 'fluentd', :protocol => @proto}
|
41
|
+
|
42
|
+
# add tls key (tls_options) only when tls = True
|
43
|
+
# see https://github.com/graylog-labs/gelf-rb/blob/72916932b789f7a6768c3cdd6ab69a3c942dbcef/lib/gelf/notifier.rb#L133-L140
|
44
|
+
if @tls then
|
45
|
+
options[:tls] = @tls_options
|
46
|
+
end
|
47
|
+
|
48
|
+
@conn = GELF::Notifier.new(@host, @port, 'WAN', options)
|
39
49
|
|
40
50
|
# Errors are not coming from Ruby so we use direct mapping
|
41
51
|
@conn.level_mapping = 'direct'
|
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: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 3
|
10
|
+
version: 1.0.3
|
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-06-15 00:00:00 Z
|
46
46
|
dependencies:
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: fluentd
|
metadata.gz.sig
CHANGED
Binary file
|