Running filebeat with the setup command docker

Hi everyone, i'm trying to install elk and filebeat on docker, well i uploaded the image of elk and it worked i can go to the kibana dashboard and view elastic ,...

Now I want to install filebeat image so i followed the documentation bellow , the image is pulled but when I want to run filebeat setup command i got an error.

Documentation: Run Filebeat on Docker | Filebeat Reference [8.1] | Elastic

docker run setup -E -E output.elasticsearch.hosts=["elasticsearch:5601"]

This is the error:

Exiting: couldn't connect to any of the configured Elasticsearch hosts. Errors: [error connecting to Elasticsearch at http://elasticsearch:9200: Get "http://elasticsearch:9200": lookup elasticsearch on read udp> i/o timeout]

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