# Failed to publish events: write tcp 127.0.0.1:59906-\>127.0.0.1:5044: write: connection reset by peer

**URL:** <https://discuss.elastic.co/t/failed-to-publish-events-write-tcp-127-0-0-1-59906-127-0-0-1-write-connection-reset-by-peer/182068>\
**Category:** Logstash\
**Created:** [May 21, 2019, 5:08pm UTC](https://discuss.elastic.co/t/failed-to-publish-events-write-tcp-127-0-0-1-59906-127-0-0-1-write-connection-reset-by-peer/182068 "2019-05-21T17:08:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankitachow](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ankitachow/32/46246_2.png) [@ankitachow](https://discuss.elastic.co/u/ankitachow)\
**Post date:** [May 21, 2019, 5:08pm UTC](https://discuss.elastic.co/t/failed-to-publish-events-write-tcp-127-0-0-1-59906-127-0-0-1-write-connection-reset-by-peer/182068/1 "2019-05-21T17:08:40Z")

</div>

Using Logstash & filbeat 6.4. I'm trying to write to ES/stdout from Filebeat through Logstash.  
I use stdout for debugging. When I write output to elastisearch it's working fine. But when I try stdout, I get below error.

* * *

## 2019-05-21T12:01:05.152-0500 ERROR logstash/async.go:235 Failed to publish events caused by: write tcp 127.0.0.1:59906-\>127.0.0.1:5044: write: connection reset by peer 2019-05-21T12:01:06.152-0500 ERROR pipeline/output.go:92 Failed to publish events: write tcp 127.0.0.1:59906-\>127.0.0.1:5044: write: connection reset by peer

Thanks

---

<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 18, 2019, 5:10pm UTC](https://discuss.elastic.co/t/failed-to-publish-events-write-tcp-127-0-0-1-59906-127-0-0-1-write-connection-reset-by-peer/182068/2 "2019-06-18T17:10:57Z")

</div>

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