# Can we use ElasticSearch as the input and kafka as the output in Logstash configuration file? using kafka output plugin?

**URL:** https://discuss.elastic.co/t/can-we-use-elasticsearch-as-the-input-and-kafka-as-the-output-in-logstash-configuration-file-using-kafka-output-plugin/103185
**Category:** Logstash
**Created:** [October 9, 2017, 7:29am UTC](https://discuss.elastic.co/t/can-we-use-elasticsearch-as-the-input-and-kafka-as-the-output-in-logstash-configuration-file-using-kafka-output-plugin/103185 "2017-10-09T07:29:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![manu\_john](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@manu\_john](https://discuss.elastic.co/u/manu_john)
#### Post date: [October 9, 2017, 7:29am UTC](https://discuss.elastic.co/t/can-we-use-elasticsearch-as-the-input-and-kafka-as-the-output-in-logstash-configuration-file-using-kafka-output-plugin/103185/1 "2017-10-09T07:29:36Z")

</div>

Can we use ElasticSearch as the input and kafka as the output in Logstash configuration file? using kafka output plugin? If so can anyone provide the config file for that?

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [October 9, 2017, 7:30am UTC](https://discuss.elastic.co/t/can-we-use-elasticsearch-as-the-input-and-kafka-as-the-output-in-logstash-configuration-file-using-kafka-output-plugin/103185/2 "2017-10-09T07:30:30Z")

</div>

Yes you can.

Are you having particular problems with the docs on this that we can assist with?

---

<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: [November 6, 2017, 7:30am UTC](https://discuss.elastic.co/t/can-we-use-elasticsearch-as-the-input-and-kafka-as-the-output-in-logstash-configuration-file-using-kafka-output-plugin/103185/3 "2017-11-06T07:30:48Z")

</div>

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