Rabbitmq output plugin - Connection to localhost:5672 failed

Hi,

I receive the following error:

RabbitMQ connection error, will retry. {:error_message=>"Connection to localhost:5672 failed: timeout", :exception=>"MarchHare::ConnectionRefused"}

although I'm explicitly defining a host => ["{host}:{port}"] pattern in the config file.

Below is my dockerfile:

FROM docker.elastic.co/logstash/logstash:7.1.0

EXPOSE 5044/udp

RUN rm -f /usr/share/logstash/pipeline/logstash.conf

ADD ./configs/logstash.conf /usr/share/logstash/pipeline
ADD ./configs/logstash.yml /usr/share/logstash/config

and here's my logstash.conf

input {
syslog {
port => 5044
type => "rsyslog"
}
}
filter {
}
output {
rabbitmq {
host => ["host:port"]
password => "password"
user => "user"
vhost => "vhost"
exchange => "logs"
exchange_type => "fanout"
}
}

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