# Run filebeat setup fail

**URL:** <https://discuss.elastic.co/t/run-filebeat-setup-fail/302626>\
**Category:** Beats\
**Tags:** docker, windows, filebeat\
**Created:** [April 18, 2022, 2:18pm UTC](https://discuss.elastic.co/t/run-filebeat-setup-fail/302626 "2022-04-18T14:18:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![The-morpho](https://avatars.discourse-cdn.com/v4/letter/t/f14d63/32.png) [@The-morpho](https://discuss.elastic.co/u/The-morpho)\
**Post date:** [April 18, 2022, 2:18pm UTC](https://discuss.elastic.co/t/run-filebeat-setup-fail/302626/1 "2022-04-18T14:18:09Z")

</div>

Hi i just install elasticsearch and kibana on docker, i want to work with filebeat, so i followed the official documentation [Run filebeat setup](https://www.elastic.co/guide/en/beats/filebeat/current/running-on-docker.html#_run_the_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/:](https://127.0.0.1:9200/:) Get "[https://127.0.0.1:9200/](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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 16, 2022, 4:19pm UTC](https://discuss.elastic.co/t/run-filebeat-setup-fail/302626/2 "2022-05-16T16:19:06Z")

</div>

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