# All output fail if one of many outputs fails

**URL:** <https://discuss.elastic.co/t/all-output-fail-if-one-of-many-outputs-fails/105199>\
**Category:** Logstash\
**Created:** [October 25, 2017, 8:26am UTC](https://discuss.elastic.co/t/all-output-fail-if-one-of-many-outputs-fails/105199 "2017-10-25T08:26:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fluency03](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fluency03/32/21977_2.png) [@fluency03](https://discuss.elastic.co/u/fluency03)\
**Post date:** [October 25, 2017, 8:26am UTC](https://discuss.elastic.co/t/all-output-fail-if-one-of-many-outputs-fails/105199/1 "2017-10-25T08:26:51Z")

</div>

1. Logstash -\> TCP: tcp output exception, EOFError: End of file reached

According to:  
[https://github.com/logstash-plugins/logstash-output-tcp/issues/9](https://github.com/logstash-plugins/logstash-output-tcp/issues/9), and  
[https://github.com/logstash-plugins/logstash-output-tcp/issues/10](https://github.com/logstash-plugins/logstash-output-tcp/issues/10)

This is caused by the shutting down of TCP server, which the logstash’s TCP client is trying to connect to. And this is indeed the case.

As stated in the code [_tcp.rb Line 153 of logstash-output-tcp plugin_](https://github.com/logstash-plugins/logstash-output-tcp/blob/5f775830420178c78711d79b89b875b818b9e96d/lib/logstash/outputs/tcp.rb#L153):

 ![tcp](https://us1.discourse-cdn.com/elastic/original/3X/0/c/0c2170c13ac7a3df7c7e6952a9add42397e27251.png)

_“# don't expect any reads, but a readable socket might # mean the remote end closed, so read it and throw it away. # we'll get an EOFError if it happens.”_

* * *

**However:**

1. Logstash stopped outputting event via all output plugins once TCP output stopped. Once the TCP output was not working due to the TCP server was stopped, all of our other outputs stopped working as well, such as Redis.

According to:  
[https://github.com/elastic/logstash/issues/2463](https://github.com/elastic/logstash/issues/2463), and  
[https://github.com/elastic/logstash/issues/1933](https://github.com/elastic/logstash/issues/1933), and  
[https://github.com/logstash-plugins/logstash-output-tcp/issues/10](https://github.com/logstash-plugins/logstash-output-tcp/issues/10)

Many people have encountered such situation: **all output fail if one of many outputs fails**. It has been behaving like such for a long time, and according to different developers’ experience, it depends on the plugin. Some plugin’s failure will block all outputs but some won’t.

I think this is a serious problem and has be to be fixed.

---

<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 22, 2017, 8:27am UTC](https://discuss.elastic.co/t/all-output-fail-if-one-of-many-outputs-fails/105199/2 "2017-11-22T08:27:17Z")

</div>

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