Skip to content

Commit

Permalink
Expose :ssl_method param to change default from remote_syslog_sender
Browse files Browse the repository at this point in the history
  • Loading branch information
emiran-orange committed Feb 2, 2024
1 parent 15470e2 commit f9e3dd4
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit f9e3dd4

Please sign in to comment.