Getting rabbitmq connection error

Hi,

We are using logstash version 9.1.2 and we are trying to connect with rabbitmq server using rabbitmq logstash input plugin but we are getting below error in logstash.

[ERROR] 2025-10-07 06:20:57.286 [[prabbitmq]<rabbitmq] rabbitmq - RabbitMQ connection error, will retry {:exception=>MarchHare::ConnectionRefused, :message=>"Connection timed out. Target host list: rabbit-mq-nonprod:3456, target virtual host: /, username: abc", :cause=>#<Java::JavaUtilConcurrent::TimeoutException: >}

I have tested telnet from logstash to rabbitmq server connection is showing established.

here i am sharing logstash config.

input
{
rabbitmq {
host => "rabbit-mq-nonprod"
port => 3456
user => "abc”

vhost => "/"
password => "mypassword"
queue => "insuran-note-xyz-queue"
ssl => true
codec => json {}
}
}
output
{
file{ path=>"/usr/share/test/rabbitmq.log"}

}

How is this different from your other thread asking same?