Hi
i have an ActiveMQ server which sending me a log4j messages,
so I try connect with logstash-input-rabbitmq
input {
rabbitmq {
host => "testurl"
port => 18062
queue => "ELK.PLAY.QUEUE"
}
}
[2018-08-13T06:56:07,403][INFO ][logstash.pipeline ] Starting pipeline {:pipeline_id=>"main", "pipeline.workers"=>4, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>5}
[2018-08-13T06:56:07,505][INFO ][logstash.pipeline ] Pipeline started successfully {:pipeline_id=>"main", :thread=>"#<Thread:0x2a4792cc run>"}
[2018-08-13T06:56:07,583][DEBUG][logstash.inputs.rabbitmq ] Connecting to RabbitMQ. Settings: {:vhost=>"/", :hosts=>["testurl"], :port=>18062, :user=>"guest", :automatic_recovery=>true, :pass=>"guest", :timeout=>0, :heartbeat=>0}
[2018-08-13T06:56:07,617][INFO ][logstash.agent ] Pipelines running {:count=>1, :running_pipelines=>[:main], :non_running_pipelines=>[]}
[2018-08-13T06:56:07,645][DEBUG][logstash.agent ] Starting puma
[2018-08-13T06:56:07,673][DEBUG][logstash.agent ] Trying to start WebServer {:port=>9600}
[2018-08-13T06:56:07,733][DEBUG][logstash.api.service ] [api-service] start
[2018-08-13T06:56:07,737][ERROR][logstash.inputs.rabbitmq ] RabbitMQ connection error, will retry. {:error_message=>"Connection to localhost:5672 refused", :exception=>"MarchHare::ConnectionRefused", :backtrace=>["/opt/logstash/vendor/bundle/jruby/2.3.0/gems/march_hare-3.1.1-java/lib/march_hare/session.rb:505:in converting_rjc_exceptions_to_ruby'", "/opt/logstash/vendor/bundle/jruby/2.3.0/gems/march_hare-3.1.1-java/lib/march_hare/session.rb:541:in
new_connection_impl'", "/opt/logstash/vendor/bundle/jruby/2.3.0/gems/march_hare-3.1.1-java/lib/march_hare/session.rb:534:in build_new_connection'", "/opt/logstash/vendor/bundle/jruby/2.3.0/gems/march_hare-3.1.1-java/lib/march_hare/session.rb:157:in
initialize'", "/opt/logstash/vendor/bundle/jruby/2.3.0/gems/march_hare-3.1.1-java/lib/march_hare/session.rb:127:in connect'", "/opt/logstash/vendor/bundle/jruby/2.3.0/gems/march_hare-3.1.1-java/lib/march_hare.rb:24:in
connect'", "/opt/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-mixin-rabbitmq_connection-5.0.2-java/lib/logstash/plugin_mixins/rabbitmq_connection.rb:201:in connect'", "/opt/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-mixin-rabbitmq_connection-5.0.2-java/lib/logstash/plugin_mixins/rabbitmq_connection.rb:138:in
connect!'", "/opt/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-input-rabbitmq-6.0.3/lib/logstash/inputs/rabbitmq.rb:183:in setup!'", "/opt/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-input-rabbitmq-6.0.3/lib/logstash/inputs/rabbitmq.rb:177:in
run'", "/opt/logstash/logstash-core/lib/logstash/pipeline.rb:512:in inputworker'", "/opt/logstash/logstash-core/lib/logstash/pipeline.rb:505:in
block in start_input'"]}
[2018-08-13T06:56:07,873][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
Is there any reason why LS try to connect to "defaulthost:defaultport" and not to the configured url?
error_message=>"Connection to localhost:5672 refused"
Br
Tig