Hello,
I'm trying to configure an systlog output with ssl enabled with the following configuration :
syslog {
host => "my_ip"
port => "6514"
protocol => "ssl-tcp"
ssl_cacert => "my_cert"
facility => "16"
severity => "6"
msgid => "-"
procid => "-"
priority => "6"
appname => "my_application"
}
but I got the following error when starting logstash :
[2019-06-28T12:13:45,166][ERROR][logstash.pipeline ] Error registering plugin {:plugin=>"#<LogStash::OutputDelegator:0x5dcf70a7 @namespaced_metric=#<LogStash::Instrument::NamespacedMetric:0x66df3e0f @metric=#<LogStash::Instrument::Metric:0x4a43648b @collector=#<LogStash::Instrument::Collector:0x7164045e @agent=nil, @metric_store=#<LogStash::Instrument::MetricStore:0x5708189d @store=#<Concurrent:0x00000000067750 entries=3 default_proc=nil>, @structured_lookup_mutex=#Mutex:0x48386b35, @fast_lookup=#<Concurrent:0x00000000067754 entries=148 default_proc=nil>>>>, @namespace_name=[:stats, :pipelines, :main, :plugins, :outputs, :"3dcabecd866e17d8d11d7d9682c6d325b4d09a69-26"]>, @metric=#<LogStash::Instrument::NamespacedMetric:0x4899880e @metric=#<LogStash::Instrument::Metric:0x4a43648b @collector=#<LogStash::Instrument::Collector:0x7164045e @agent=nil, @metric_store=#<LogStash::Instrument::MetricStore:0x5708189d @store=#<Concurrent:0x00000000067750 entries=3 default_proc=nil>, @structured_lookup_mutex=#Mutex:0x48386b35, @fast_lookup=#<Concurrent:0x00000000067754 entries=148 default_proc=nil>>>>, @namespace_name=[:stats, :pipelines, :main, :plugins, :outputs]>, @logger=#<LogStash::Logging::Logger:0x54a8047e @logger=#Java::OrgApacheLoggingLog4jCore::Logger:0x1d661086>, @out_counter=LogStash::Instrument::MetricType::Counter - namespaces: [:stats, :pipelines, :main, :plugins, :outputs, :"3dcabecd866e17d8d11d7d9682c6d325b4d09a69-26", :events] key: out value: 0, @in_counter=LogStash::Instrument::MetricType::Counter - namespaces: [:stats, :pipelines, :main, :plugins, :outputs, :"3dcabecd866e17d8d11d7d9682c6d325b4d09a69-26", :events] key: in value: 0, @strategy=#<LogStash::OutputDelegatorStrategies::Legacy:0x72bc785f @worker_count=1, @workers=[<LogStash::Outputs::Syslog host=>"my_i", port=>6514, protocol=>"ssl-tcp", ssl_cacert=>"my_cert", facility=>"16", severity=>"6", msgid=>"-", procid=>"-", priority=>"6", ssl_key_passphrase=>, appname=>"Bastion_ORE", id=>"3dcabecd866e17d8d11d7d9682c6d325b4d09a69-26", enable_metric=>true, codec=><LogStash::Codecs::Plain id=>"plain_5fc2549b-c27f-44d5-9846-0af119698203", enable_metric=>true, charset=>"UTF-8">, workers=>1, reconnect_interval=>1, ssl_verify=>false, use_labels=>true, sourcehost=>"%{host}", message=>"%{message}", rfc=>"rfc3164">], @worker_queue=#SizedQueue:0x4864d91c>, @id="3dcabecd866e17d8d11d7d9682c6d325b4d09a69-26", @time_metric=LogStash::Instrument::MetricType::Counter - namespaces: [:stats, :pipelines, :main, :plugins, :outputs, :"3dcabecd866e17d8d11d7d9682c6d325b4d09a69-26", :events] key: duration_in_millis value: 0, @metric_events=#<LogStash::Instrument::NamespacedMetric:0xba0f4ba @metric=#<LogStash::Instrument::Metric:0x4a43648b @collector=#<LogStash::Instrument::Collector:0x7164045e @agent=nil, @metric_store=#<LogStash::Instrument::MetricStore:0x5708189d @store=#<Concurrent:0x00000000067750 entries=3 default_proc=nil>, @structured_lookup_mutex=#Mutex:0x48386b35, @fast_lookup=#<Concurrent:0x00000000067754 entries=148 default_proc=nil>>>>, @namespace_name=[:stats, :pipelines, :main, :plugins, :outputs, :"3dcabecd866e17d8d11d7d9682c6d325b4d09a69-26", :events]>, @output_class=LogStash::Outputs::Syslog>", :error=>"can't convert nil into String"}
Could you please help me to sort it out ?
I'm running logstash 5.6.16.
BR