# Logstash shutdown stalled while retrying rabbitmq input connection

**URL:** <https://discuss.elastic.co/t/logstash-shutdown-stalled-while-retrying-rabbitmq-input-connection/267474>\
**Category:** Logstash\
**Created:** [March 17, 2021, 10:40am UTC](https://discuss.elastic.co/t/logstash-shutdown-stalled-while-retrying-rabbitmq-input-connection/267474 "2021-03-17T10:40:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![samyascha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/samyascha/32/85673_2.png) [@samyascha](https://discuss.elastic.co/u/samyascha)\
**Post date:** [March 17, 2021, 10:40am UTC](https://discuss.elastic.co/t/logstash-shutdown-stalled-while-retrying-rabbitmq-input-connection/267474/1 "2021-03-17T10:40:16Z")

</div>

Hi,

Im trying to find a solution for a Logstash (6.8.14) stalled shutdown when a RabbitMQ input is unavailable.

Starting Logstash works fine, and it starts retrying connection to the RabbitMQ endpoint. That's fine.

I cannot, however, shutdown Logstash cleanly while it is still retrying. I also cannot seem to find any 'give up after x tries' config option.

Although this is only an issue when specifically restarting Logstash while the RabbitMQ service is down, I would like to have more robustness by just having Logstash cancel the connection attempt. After all, it is going to shutdown/restart anyway...

Is there any good way to handle this?

Thanks,

Samy

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [March 17, 2021, 3:49pm UTC](https://discuss.elastic.co/t/logstash-shutdown-stalled-while-retrying-rabbitmq-input-connection/267474/2 "2021-03-17T15:49:12Z")

</div>

> [@samyascha](#):
>
> Is there any good way to handle this?

No. The mixin [retries](https://discuss.elastic.co/t/logstash-external-component-retry-attempts/202738/2) the connection attempt forever.

---

<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:** [April 14, 2021, 3:50pm UTC](https://discuss.elastic.co/t/logstash-shutdown-stalled-while-retrying-rabbitmq-input-connection/267474/3 "2021-04-14T15:50:04Z")

</div>

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