# No reconnect after shutdown: running logstash rabbitmq input plugin in docker/kubernetes

**URL:** <https://discuss.elastic.co/t/no-reconnect-after-shutdown-running-logstash-rabbitmq-input-plugin-in-docker-kubernetes/86139>\
**Category:** Logstash\
**Created:** [May 17, 2017, 3:56pm UTC](https://discuss.elastic.co/t/no-reconnect-after-shutdown-running-logstash-rabbitmq-input-plugin-in-docker-kubernetes/86139 "2017-05-17T15:56:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kuckkuck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kuckkuck/32/9805_2.png) [@Kuckkuck](https://discuss.elastic.co/u/Kuckkuck)\
**Post date:** [May 17, 2017, 3:56pm UTC](https://discuss.elastic.co/t/no-reconnect-after-shutdown-running-logstash-rabbitmq-input-plugin-in-docker-kubernetes/86139/1 "2017-05-17T15:56:46Z")

</div>

Hi,

I am using logstash 5.3.2. The offical docker image from [elastic.io](http://elastic.io). Both rabbitmq und logstash are running in a Kubernetes cluster.

There is no reconnect/retry to connect to a new rabbitmq instance, if rabbitmq is restarted during deployment, just the normal shutdown message, when rabbitmq is going down in the logstash log.  
Any idea, how I can do a automatic reconnect, when rabbitmq is up again? Logstash stays up, but nothing else is happening. Logstash rabbitmqs input plugin is used as a consumer for sending json to elasticsearch.

[2017-05-17T09:15:08,869][INFO][logstash.inputs.rabbitmq] Connected to RabbitMQ at  
[2017-05-17T11:16:07,490][WARN][logstash.inputs.rabbitmq] RabbitMQ connection was closed! {:url=\>"amqp://openstack:XXXXXX@rabbitmq:5672/", :automatic\_recovery=\>true, :cause=\>com.rabbitmq.client.ShutdownSignalException: connection error}

The rabbitmq and the logstash agent are running in different namespace and have, right now, no deployment dependencies.

logstash-input-rabbitmq-5.2.2  
logstash-mixin-rabbitmq\_connection-4.2.2-java  
logstash-output-rabbitmq-4.0.6-java

Thanks a lot and regards,

Olaf

---

<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:** [June 14, 2017, 3:57pm UTC](https://discuss.elastic.co/t/no-reconnect-after-shutdown-running-logstash-rabbitmq-input-plugin-in-docker-kubernetes/86139/2 "2017-06-14T15:57:10Z")

</div>

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