Filebeat fails to send logs to Elasticsearch

(Surya) #1

Hello,

I have filebeat (5.6.3) when i am trying to ship logs to Elasticsearch i get below error.

2019-05-15T14:01:19.553-0400 ERROR pipeline/output.go:92 Failed to publish events: Post http://demo.com:9200/_bulk: net/http: HTTP/1.x transport connection broken: write tcp 1.2.3.4->1.2.3.4:9200: write: connection reset by peer
2019-05-15T14:01:20.152-0400 ERROR elasticsearch/client.go:299 Failed to perform any bulk index operations: Post http://demo.com:9200/_bulk: net/http: HTTP/1.x transport connection broken: write tcp 1.2.3.4:55802->1.2.3.4:9200: write: connection reset by peer.

Can some one please help to fix this. How do i increase client timeout on Elasticsearch.

Thanks,
Surya

(Pier-Hugues Pellerin) #2

Hello @surya2 Can you reach Elasticsearch using curl? Looking at the errors this looks like network related or a bad configuration.