logstash通过ssl连接到activemq

时间:2018-12-24 13:31:22

标签: ssl logstash activemq

我已配置Logstash以以下方式通过SSL连接到ActiveMQ Amazon服务:

stomp { host => "ssl://b-a0btfc0a-5f32-4a9d-8yf5-1323f04fa760-1.mq.eu-west-1.amazonaws.com" port => "61614" destination => "nlog.messages" user => "myUser" password => "myPassword"}

但是,出现以下错误:

 Error: initialize: name or service not known
  Exception: SocketError
  Stack: org/jruby/ext/socket/RubyTCPSocket.java:137:in `initialize'
org/jruby/RubyIO.java:875:in `new'
C:/Program Files/Elastic/logstash-6.3.0/logstash-6.3.0/vendor/bundle/jruby/2.3.0/gems/onstomp-1.0.10/lib/onstomp/connections.rb:86:in `create_socket_tcp'
C:/Program Files/Elastic/logstash-6.3.0/logstash-6.3.0/vendor/bundle/jruby/2.3.0/gems/onstomp-1.0.10/lib/onstomp/connections.rb:77:in `create_connection'
C:/Program Files/Elastic/logstash-6.3.0/logstash-6.3.0/vendor/bundle/jruby/2.3.0/gems/onstomp-1.0.10/lib/onstomp/connections.rb:48:in `connect'
C:/Program Files/Elastic/logstash-6.3.0/logstash-6.3.0/vendor/bundle/jruby/2.3.0/gems/onstomp-1.0.10/lib/onstomp/client.rb:85:in `connect'
C:/Program Files/Elastic/logstash-6.3.0/logstash-6.3.0/vendor/bundle/jruby/2.3.0/gems/logstash-input-stomp-3.0.8/lib/logstash/inputs/stomp.rb:46:in `connect'
C:/Program Files/Elastic/logstash-6.3.0/logstash-6.3.0/vendor/bundle/jruby/2.3.0/gems/logstash-input-stomp-3.0.8/lib/logstash/inputs/stomp.rb:104:in `run'
C:/Program Files/Elastic/logstash-6.3.0/logstash-6.3.0/logstash-core/lib/logstash/pipeline.rb:512:in `inputworker'
C:/Program Files/Elastic/logstash-6.3.0/logstash-6.3.0/logstash-core/lib/logstash/pipeline.rb:505:in `block in start_input'
[2018-12-16T08:56:25,806][ERROR][logstash.pipeline        ] A plugin had an unrecoverable error. Will restart this plugin.

请告知。

0 个答案:

没有答案