# ERR Failed to publish events caused by: write tcp 10.0.0.1:40716-\>10.0.0.2:5044: write: connection reset by peer only with one type of log

**URL:** <https://discuss.elastic.co/t/err-failed-to-publish-events-caused-by-write-tcp-10-0-0-1-40716-10-0-0-2-5044-write-connection-reset-by-peer-only-with-one-type-of-log/77459>\
**Category:** Beats\
**Created:** [March 6, 2017, 8:50am UTC](https://discuss.elastic.co/t/err-failed-to-publish-events-caused-by-write-tcp-10-0-0-1-40716-10-0-0-2-5044-write-connection-reset-by-peer-only-with-one-type-of-log/77459 "2017-03-06T08:50:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomer](https://avatars.discourse-cdn.com/v4/letter/t/41988e/32.png) [@tomer](https://discuss.elastic.co/u/tomer)\
**Post date:** [March 6, 2017, 8:50am UTC](https://discuss.elastic.co/t/err-failed-to-publish-events-caused-by-write-tcp-10-0-0-1-40716-10-0-0-2-5044-write-connection-reset-by-peer-only-with-one-type-of-log/77459/1 "2017-03-06T08:50:45Z")

</div>

Hi,

I am putting in filebeats 3 types of logs:  
2 raw logs (not jsons) and it reads it perfectly.  
Then when I put in a log (Json type) I get: `ERR Failed to publish events caused by: write tcp 10.0.0.1:40716->10.0.0.2:5044: write: connection reset by peer`

In the past filebeats did read this log perfectly.

From when it worked to now I:

played with mutate on a certain feild inside this log in logstash, but I erased all the filter section in logstash and restarted!  
erased all filebeat index's until now

Any help will be great!

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [March 6, 2017, 3:14pm UTC](https://discuss.elastic.co/t/err-failed-to-publish-events-caused-by-write-tcp-10-0-0-1-40716-10-0-0-2-5044-write-connection-reset-by-peer-only-with-one-type-of-log/77459/2 "2017-03-06T15:14:13Z")

</div>

- Can you share your LS config?
- Can you share some LS logs?
- Which versions of both are you using?

---

<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:** [March 27, 2017, 8:50am UTC](https://discuss.elastic.co/t/err-failed-to-publish-events-caused-by-write-tcp-10-0-0-1-40716-10-0-0-2-5044-write-connection-reset-by-peer-only-with-one-type-of-log/77459/3 "2017-03-27T08:50:46Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
