Logstash rabbitmq input plugin doesn't read "host" value

I'm having trouble to setup logstash rabbitmq input plugin, to connect to the rabbitmq pod host name.
Why it still tries to connect @localhost. logstash does not read the config correctly. Is this a bug or is there any workaround ?
Logstash version: happens on both 6.8.22 and 7.17.3.
I already have tried everything suggested in internet, but it didn't work.

logstash.conf: |
    input {
      rabbitmq {
        host => "rabbitmq:5672"
        vhost => "/"
        ...
        exchange => "amq.rabbitmq.trace"
        key => "#"
      }
   }
}
[2022-08-16T16:39:46,015][ERROR][logstash.inputs.rabbitmq ] RabbitMQ connection error, will retry. {:error_message=>"Authentication with RabbitMQ failed or RabbitMQ version used does not support AMQP 0-9-1. Username: xxx, vhost: /, password length: 8. Please check your configuration.", :exception=>"MarchHare::AuthenticationFailureError"}
E, [2022-08-16T16:39:46.015222 #1] ERROR -- #<MarchHare::Session:2034 xxx@localhost:5672, vhost=/>: Socket closed (Java::JavaNet::SocketException)
java.net.SocketInputStream.socketRead0(Native Method)
java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
java.net.SocketInputStream.read(SocketInputStream.java:189)
java.net.SocketInputStream.read(SocketInputStream.java:141)
java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
java.io.BufferedInputStream.read(BufferedInputStream.java:265)
java.io.DataInputStream.readUnsignedByte(DataInputStream.java:288)
com.rabbitmq.client.impl.Frame.readFrom(Frame.java:91)
com.rabbitmq.client.impl.SocketFrameHandler.readFrame(SocketFrameHandler.java:184)
com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:665)
java.lang.Thread.run(Thread.java:748)

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