# Failed to start Filebeat sends log files to Logstash or directly to Elasticsearch

**URL:** https://discuss.elastic.co/t/failed-to-start-filebeat-sends-log-files-to-logstash-or-directly-to-elasticsearch/276176
**Category:** Beats
**Tags:** docker, filebeat
**Created:** [June 16, 2021, 5:27pm UTC](https://discuss.elastic.co/t/failed-to-start-filebeat-sends-log-files-to-logstash-or-directly-to-elasticsearch/276176 "2021-06-16T17:27:29Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [June 17, 2021, 2:11pm UTC](https://discuss.elastic.co/t/failed-to-start-filebeat-sends-log-files-to-logstash-or-directly-to-elasticsearch/276176/8 "2021-06-17T14:11:21Z")

</div>

When you run setup filebeat output needs to point to elasticsearch not logstash. Once setup is complete then you can point it back to log stash.

[Here](https://discuss.elastic.co/t/metricbeat-to-logstash-to-elasticsearch-cannot-see-any-hosts-defined-but-data-is-definitely-coming-in/275715/2) is the exact steps / process i would recommend If you want to run thus architecture.

Filebeat -\> Logstash -\> Elasticsearch

Follow the same steps just use filebeat instead of metricbeat. And use the filebeat quick start guide instead of the metricbeat quick start guide.

---

_[View the full topic](https://discuss.elastic.co/t/failed-to-start-filebeat-sends-log-files-to-logstash-or-directly-to-elasticsearch/276176)._
