Only connect to rabbitmq user username 'guest' and vhost '/'

Logstash version: 6.4.2
RabbitMQ version: 3.7.7

My rabbitmq input configuration and rabbitmq users is below:

QQ%E5%9B%BE%E7%89%8720181023172353

input {
rabbitmq {
type =>"log"
host => "127.0.0.1"
port => 5682
vhost => "/"
user => "guest"
password => "guest"
queue => "acdp.log"
exchange => "acdp.log"
exchange_type => "direct"
key => "acdp.log.key"
durable => true
}
}

It is success connect to the rabbitmq. The log:

When I change vhost to 'acdp', it connected fail:

QQ%E5%9B%BE%E7%89%8720181023174659

when I change the user to 'admin', all fail ! The log is difference:

QQ%E5%9B%BE%E7%89%8720181023174409

In the java application all is work. So that, the mq has no problem.
What is wrong in the logstash configuration ?

Did you check the RabbitMQ log as suggested in the first error message?

Thanks. I found the reason.
My windows install one rabbitmq(port: 5672) and the docker install the same(port: 5682), windows rabbitmq only has the default user and vhost.
During development, I set the port 5682. Spring boot amqp application is connect to the docker rabbitmq, but the logstash connect to the windows rabbitmq.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.