# Cannot recover from a SERVICE\_UNAVAILABLE/2/no master

**URL:** <https://discuss.elastic.co/t/cannot-recover-from-a-service-unavailable-2-no-master/56165>\
**Category:** Logstash\
**Created:** [July 22, 2016, 9:49am UTC](https://discuss.elastic.co/t/cannot-recover-from-a-service-unavailable-2-no-master/56165 "2016-07-22T09:49:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MikeC](https://avatars.discourse-cdn.com/v4/letter/m/977dab/32.png) [@MikeC](https://discuss.elastic.co/u/MikeC)\
**Post date:** [July 22, 2016, 9:49am UTC](https://discuss.elastic.co/t/cannot-recover-from-a-service-unavailable-2-no-master/56165/1 "2016-07-22T09:49:30Z")

</div>

I have a bunch of hosts that im monitoring with logstash and they all send data to my elastic cluster.  
When the clusters health turn red for reasons, some of the logstash instances seem to die and stop sending  
data back to the cluster, even after its turned green (from red).

[Here](https://gist.github.com/serialdoom/18fb9bbf74b2da7686ba29269ae5b0d0) is a pastebin of the log output.  
The output is restored if i `killall -9 -u logstash` and `service logstash start`.

Here is a graph that shows the problem.

 ![](https://us1.discourse-cdn.com/elastic/original/2X/c/ccf09639c174c0591dbb291b93b7b7eb78165fe2.png)

Is there a setting i can set to stop re-trying stuff for ever as its mentioned [here](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#_retry_policy) ?

Or is there anything else i can do for the failing servers to be able to self-recover ?  
Im running all the latest and greatest ELK stuff.

Cheers

---

<div class="post-metadata">

**Author:** ![MikeC](https://avatars.discourse-cdn.com/v4/letter/m/977dab/32.png) [@MikeC](https://discuss.elastic.co/u/MikeC)\
**Post date:** [July 26, 2016, 2:37pm UTC](https://discuss.elastic.co/t/cannot-recover-from-a-service-unavailable-2-no-master/56165/2 "2016-07-26T14:37:21Z")

</div>

sneaky bump as i havenot been able to fix that and im really bummed that its happening in one of my many servers only 😕

---

<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:** [July 6, 2017, 4:46am UTC](https://discuss.elastic.co/t/cannot-recover-from-a-service-unavailable-2-no-master/56165/3 "2017-07-06T04:46:27Z")

</div>

Closed on July 6, 2017, 4:46am UTC


