# Beats require setup with elasticsearch as the output before using logstash as the output

**URL:** <https://discuss.elastic.co/t/beats-require-setup-with-elasticsearch-as-the-output-before-using-logstash-as-the-output/263249>\
**Category:** Logstash\
**Created:** [February 4, 2021, 2:10pm UTC](https://discuss.elastic.co/t/beats-require-setup-with-elasticsearch-as-the-output-before-using-logstash-as-the-output/263249 "2021-02-04T14:10:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bzak](https://avatars.discourse-cdn.com/v4/letter/b/a88e57/32.png) [@bzak](https://discuss.elastic.co/u/bzak)\
**Post date:** [February 4, 2021, 2:10pm UTC](https://discuss.elastic.co/t/beats-require-setup-with-elasticsearch-as-the-output-before-using-logstash-as-the-output/263249/1 "2021-02-04T14:10:10Z")

</div>

I have elk running in k8s. When I configure the beats to ship logs straight to elasticsearch, logs flow smoothly. However, I can't get the beats to ship logs to Logstash. There is a work around that I use to get this work. I first setup the beat to use the elasticsearch as the output, then I modify the beat's config to use logstash as the output.  
Any help will be greatly appreciated.

---

<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:** [March 4, 2021, 2:10pm UTC](https://discuss.elastic.co/t/beats-require-setup-with-elasticsearch-as-the-output-before-using-logstash-as-the-output/263249/2 "2021-03-04T14:10:45Z")

</div>

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