# FilebeatからLogstashへのデータ転送で connection reset by peer を解消したい

**URL:** <https://discuss.elastic.co/t/filebeat-logstash-connection-reset-by-peer/211739>\
**Category:** 日本語による質問・議論はこちら\
**Created:** [December 13, 2019, 2:54am UTC](https://discuss.elastic.co/t/filebeat-logstash-connection-reset-by-peer/211739 "2019-12-13T02:54:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sat1100](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@sat1100](https://discuss.elastic.co/u/sat1100)\
**Post date:** [December 13, 2019, 2:54am UTC](https://discuss.elastic.co/t/filebeat-logstash-connection-reset-by-peer/211739/1 "2019-12-13T02:54:29Z")

</div>

filebeatからデータを送った時に、ログで「write: connection reset by peer」と表示されますが、  
データは送られておりKibanaで確認できている状態です。

logstashには以下のように設定しておりますが、解消するにはどのように対処すればいいかご教示お願いします。

input {  
beats {  
port =\> 5044  
}  
}

---

<div class="post-metadata">

**Author:** ![tsgkdt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsgkdt/32/39151_2.png) [@tsgkdt](https://discuss.elastic.co/u/tsgkdt)\
**Post date:** [December 13, 2019, 3:32am UTC](https://discuss.elastic.co/t/filebeat-logstash-connection-reset-by-peer/211739/2 "2019-12-13T03:32:13Z")

</div>

> [@\[Solved\] Filebeat -\> Logstash : connection reset by peer](https://discuss.elastic.co/t/solved-filebeat-logstash-connection-reset-by-peer/87012/5):
>
> Using stdout instead of ES would have helped if there was a problem with ES output. For example, if ES was being overloaded or slow, the backpressure could eventually cause Logstash to sever the connections to Beats.

データ送信時に発生するとのことですが、データを送るたびに毎回発生するのでしょうか？  
それとも、不定期、何らかのデータを処理したときにでるのでしょうか？

上記の投稿によればElasticsearchに入れるところでエラーがおきると、そのようなエラーが表示されると書いてあります。  
不定期に起きるのであれば、こちらの現象が該当するように思います。

---

<div class="post-metadata">

**Author:** ![sat1100](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@sat1100](https://discuss.elastic.co/u/sat1100)\
**Post date:** [December 13, 2019, 9:42am UTC](https://discuss.elastic.co/t/filebeat-logstash-connection-reset-by-peer/211739/3 "2019-12-13T09:42:49Z")

</div>

回答ありがとうございます。  
データ送信時に不定期に発生することを確認しております。  
client\_inactivity\_timeout の設定を行い、間隔を延ばした所、  
出力頻度が下がりました。

この事象を解決するにはどのような設定が必要か現在確認しておりますが、  
何かよい方法がありましたらご教示お願いします。

---

<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:** [January 10, 2020, 9:42am UTC](https://discuss.elastic.co/t/filebeat-logstash-connection-reset-by-peer/211739/4 "2020-01-10T09:42:53Z")

</div>

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