Run filebeat setup fail

Hi i just install elasticsearch and kibana on docker, i want to work with filebeat, so i followed the official documentation Run filebeat setup

So i run this command:

docker run docker.elastic.co/beats/filebeat:8.1.2 setup -E setup.kibana.host=localhost:5601 -E output.elasticsearch.hosts=["https://127.0.0.1:9200/"]

But i get this error :

Exiting: couldn't connect to any of the configured Elasticsearch hosts. Errors: [error connecting to Elasticsearch at https://127.0.0.1:9200/: Get "https://127.0.0.1:9200/": dial tcp 127.0.0.1:9200: connect: connection refused]

I'm working with the current version of elk.

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