Unable to connect filebeat to elastic search host

Hi I am running filebeat docker image with following command
docker run docker.elastic.co/beats/filebeat:8.6.2 setup -E setup.kibana.host=http://localhost:5601 -E output.elasticsearch.hosts=["https://localhost:9200"] but it says connect: cannot assign requested address .

I have conformed that my Elasticsearch is running on http://localhost:9200

Let me know if I am missing anything, any quick help is appreciated.
Thanks in advance.

Welcome to our community! :smiley:

Please don't post pictures of text, logs or code. They are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them :slight_smile:

@Shrivatsa_Rao

Perhaps Take a look at this ... Localhost within your docker container is not localhost of the host/ server

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