# Logstash Rabbitmq connection refused?

**URL:** <https://discuss.elastic.co/t/logstash-rabbitmq-connection-refused/285801>\
**Category:** Logstash\
**Created:** [October 4, 2021, 10:15am UTC](https://discuss.elastic.co/t/logstash-rabbitmq-connection-refused/285801 "2021-10-04T10:15:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![padamrai](https://avatars.discourse-cdn.com/v4/letter/p/3da27b/32.png) [@padamrai](https://discuss.elastic.co/u/padamrai)\
**Post date:** [October 4, 2021, 10:15am UTC](https://discuss.elastic.co/t/logstash-rabbitmq-connection-refused/285801/1 "2021-10-04T10:15:56Z")

</div>

I am using multiple instances using logstash, First I get an error multiple instance error when I resolved that error. Now I am getting a new error.

```auto
[ERROR][logstash.inputs.rabbitmq] RabbitMQ connection error, will retry. 
{:error_message=>"Connection to localhost:5672 refused", 
:exception=>"MarchHare::ConnectionRefused"}

```

I have a config file in config.d that is running in the background because one of my project running on production.

I also change the --path.data directory after that I am getting above an error.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 1, 2021, 10:16am UTC](https://discuss.elastic.co/t/logstash-rabbitmq-connection-refused/285801/2 "2021-11-01T10:16:19Z")

</div>

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