Logstash fails to connect to rabbitmq -


i trying setup logstash configuration push lines file rabbitmq. installed both logstash 2.1.1 , rabbit 3.6.0 on local machine test it. output configuration is:

output {     rabbitmq {             exchange => "test_exchange"             key => "test"             exchange_type => "direct"             host => "127.0.0.1"             port => "15672"             user => "logstash"             password => "logstashpassword"         } } 

but when start logstash fails startup following error (the output shown when logstash started in debug mode):

worker threads expected: 4, worker threads started: 4 {:level=>:info, :file=>"logstash/pipeline.rb", :line=>"186", :method=>"start_filters"} connecting rabbitmq. settings: {:vhost=>"/", :host=>"127.0.0.1", :port=>15672, :user=>"logstash", :automatic_recovery=>true, :pass=>"logstashpassword", :timeout=>0, :heartbeat=>0} {:level=>:debug, :file=>"logstash/plugin_mixins/rabbitmq_connection.rb", :line=>"135", :method=>"connect"} error reported is:   com.rabbitmq.utility.blockingcell.get(com/rabbitmq/utility/blockingcell.java:77) com.rabbitmq.utility.blockingcell.uninterruptibleget(com/rabbitmq/utility/blockingcell.java:111) com.rabbitmq.utility.blockingvalueorexception.uninterruptiblegetvalue(com/rabbitmq/utility/blockingvalueorexception.java:37) com.rabbitmq.client.impl.amqchannel$blockingrpccontinuation.getreply(com/rabbitmq/client/impl/amqchannel.java:367) com.rabbitmq.client.impl.amqconnection.start(com/rabbitmq/client/impl/amqconnection.java:293) com.rabbitmq.client.connectionfactory.newconnection(com/rabbitmq/client/connectionfactory.java:621) com.rabbitmq.client.connectionfactory.newconnection(com/rabbitmq/client/connectionfactory.java:648) java.lang.reflect.method.invoke(java/lang/reflect/method.java:606) ruby.new_connection_impl(/opt/logstash/vendor/bundle/jruby/1.9/gems/march_hare-2.11.0-java/lib/march_hare/session.rb:505) org.jruby.rubyproc.call(org/jruby/rubyproc.java:281) ruby.converting_rjc_exceptions_to_ruby(/opt/logstash/vendor/bundle/jruby/1.9/gems/march_hare-2.11.0-java/lib/march_hare/session.rb:467) ruby.new_connection_impl(/opt/logstash/vendor/bundle/jruby/1.9/gems/march_hare-2.11.0-java/lib/march_hare/session.rb:500) ruby.initialize(/opt/logstash/vendor/bundle/jruby/1.9/gems/march_hare-2.11.0-java/lib/march_hare/session.rb:136) ruby.connect(/opt/logstash/vendor/bundle/jruby/1.9/gems/march_hare-2.11.0-java/lib/march_hare/session.rb:109) ruby.connect(/opt/logstash/vendor/bundle/jruby/1.9/gems/march_hare-2.11.0-java/lib/march_hare.rb:20) ruby.connect(/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-mixin-rabbitmq_connection-2.2.0-java/lib/logstash/plugin_mixins/rabbitmq_connection.rb:137) ruby.connect!(/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-mixin-rabbitmq_connection-2.2.0-java/lib/logstash/plugin_mixins/rabbitmq_connection.rb:94) ruby.register(/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-rabbitmq-3.0.6-java/lib/logstash/outputs/rabbitmq.rb:40) org.jruby.rubyarray.each(org/jruby/rubyarray.java:1613) ruby.start_outputs(/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.1.1-java/lib/logstash/pipeline.rb:192) ruby.run(/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.1.1-java/lib/logstash/pipeline.rb:102) ruby.execute(/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.1.1-java/lib/logstash/agent.rb:165) ruby.run(/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.1.1-java/lib/logstash/runner.rb:90) org.jruby.rubyproc.call(org/jruby/rubyproc.java:281) ruby.run(/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.1.1-java/lib/logstash/runner.rb:95) org.jruby.rubyproc.call(org/jruby/rubyproc.java:281) ruby.initialize(/opt/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.22/lib/stud/task.rb:24) java.lang.thread.run(java/lang/thread.java:745) 

and logstash "crashes" i.e. stops. know if has config of logstash or problem in rabbitmq setup?

thanks in advance. daniel

found error port rabbitmq has 5672 not 15672.


Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -