Filebeat resolves hostnames to IPs

Hello! I've configured filebeat to output the logs to logstash by hostname.

output:
  logstash:
    hosts: ["logstash:5044"]

Internally it seems to resolve the hostname to its IP.

 2017/11/06 14:45:18.882832 output.go:92: ERR Failed to publish events: write tcp 172.27.0.5:46906->172.27.0.4:5044: write: connection reset by peer

I don't want this to happen because of the Docker built in load balancing. Any ideas?

One always needs to resolve the IP based on hostname, in order to make a TCP connection. Upon reconnect the client normally tries to resolve a new IP.

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