<root@ubuntu:/# docker run \
docker.elastic.co/beats/filebeat:8.5.2
setup -E setup.kibana.host=172.18.0.3:5601
-E output.elasticsearch.hosts=["172.18.0.2:9200"]
Exiting: couldn't connect to any of the configured Elasticsearch hosts. Errors: [error connecting to Elasticsearch at http://172.18.0.2:9200: Get "http://172.18.0.2:9200": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)]
<root@ubuntu:/home/test# docker run \
docker.elastic.co/beats/filebeat:8.5.2
setup -E setup.kibana.host=192.168.1.6:5601
-E output.elasticsearch.hosts=["192.168.1.6:9200"]
Exiting: couldn't connect to any of the configured Elasticsearch hosts. Errors: [error connecting to Elasticsearch at http://192.168.1.6:9200: Get "http://192.168.1.6:9200": EOF]