Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Expose :ssl_method param to change default from remote_syslog_sender #60

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/fluent/plugin/out_remote_syslog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class RemoteSyslogOutput < Output
config_param :tls, :bool, :default => false
config_param :ca_file, :string, :default => nil
config_param :verify_mode, :integer, default: nil
config_param :ssl_method, :string, :default => nil
config_param :packet_size, :size, default: 1024
config_param :timeout, :time, default: nil
config_param :timeout_exception, :bool, default: false
Expand Down Expand Up @@ -135,6 +136,7 @@ def create_sender(host, port)
}
options[:ca_file] = @ca_file if @ca_file
options[:verify_mode] = @verify_mode if @verify_mode
options[:ssl_method] = @ssl_method if @ssl_method
sender = RemoteSyslogSender::TcpSender.new(
host,
port,
Expand All @@ -161,7 +163,7 @@ def create_sender(host, port)
module SeverityMapper
DICT = {
# "warning" is not supported, but we should use it since "warn" is deprecated.
"warning" => "warn",
"warning" => "warn",
}

def self.map(severity)
Expand Down