From f9e3dd42074ef29a5a46ba101454d70623652dad Mon Sep 17 00:00:00 2001 From: Erwan Miran Date: Fri, 2 Feb 2024 15:42:48 +0100 Subject: [PATCH] Expose :ssl_method param to change default from remote_syslog_sender --- lib/fluent/plugin/out_remote_syslog.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/fluent/plugin/out_remote_syslog.rb b/lib/fluent/plugin/out_remote_syslog.rb index 3e163b7..712a6e9 100644 --- a/lib/fluent/plugin/out_remote_syslog.rb +++ b/lib/fluent/plugin/out_remote_syslog.rb @@ -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 @@ -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, @@ -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)