미니옵빠의 code stubs

FileBeat 에서 ERR Failed to publish events caused by: write tcp ... write: connection reset by peer 오류 시 본문

Elastic Stack/Beats

FileBeat 에서 ERR Failed to publish events caused by: write tcp ... write: connection reset by peer 오류 시

미니옵빠 2018. 4. 7. 17:14

FileBeat 에서 Logstash로 전송 시, 정상 전송이 완료되었음에도 아래와 같이 오류 메시지가 뜨는 경우가 있음.


2018-01-22T17:23:44+08:00 ERR Failed to publish events caused by: write tcp xx.xx.xx.xx:xxxx -> x.x.x.x.:xxxx: write: connection reset by peer


데이터 전송에는 문제가 없는데 찝찝하니 없애보자.



Logstash 내 beats plugin 버전이 낮아 발생하는 이슈로, 아래와 같이 Logstash 폴더에서 plugin 업데이트를 해주면 됨


bin/logstash-plugin update logstash-input-beats




Ref: https://github.com/elastic/beats/issues/6133