The client is not connected when Filebeat connects to Logstash

I use the container created by the Docker images When Filebeat connects to Elasticsearch, the information is displayed perfectly in Kibana.But after Filebeat connected to Logstash, Filebeat logs reported some errors:

2020-09-15T18:16:25.207+0800 ERROR pipeline/output.go:121 Failed to publish events: client is not connected
2020-09-15T18:16:25.207+0800 INFO pipeline/output.go:95 Connecting to backoff(async(tcp://localhost:5044))
2020-09-15T18:16:25.207+0800 INFO pipeline/output.go:105 Connection to backoff(async(tcp://localhost:5044)) established
2020-09-15T18:16:25.256+0800 ERROR logstash/async.go:256 Failed to publish events caused by: EOF
2020-09-15T18:16:25.304+0800 ERROR logstash/async.go:256 Failed to publish events caused by: client is not connected

This is my instruction to create ELK:
docker run -d -p 5601:5601 -p 9200:9200 -p 5044:5044 --name elk abce9b

Below is my Filebeat configuration file:

#-------------------------- Elasticsearch output ------------------------------
  #hosts: ["localhost:9200"]
  #protocol: "https"
  #username: "elastic"
  #password: "changeme"
#----------------------------- Logstash output --------------------------------
  hosts: ["localhost:5044"]
  #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]
  #ssl.certificate: "/etc/pki/client/cert.pem"
  #ssl.key: "/etc/pki/client/cert.key"

Hope to get your suggestions, thank you

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