# Kafka to elasticsearch

**URL:** <https://discuss.elastic.co/t/kafka-to-elasticsearch/252487>\
**Category:** Elasticsearch\
**Created:** [October 19, 2020, 7:18am UTC](https://discuss.elastic.co/t/kafka-to-elasticsearch/252487 "2020-10-19T07:18:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sahil21](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@sahil21](https://discuss.elastic.co/u/sahil21)\
**Post date:** [October 19, 2020, 7:18am UTC](https://discuss.elastic.co/t/kafka-to-elasticsearch/252487/1 "2020-10-19T07:18:15Z")

</div>

Hi All,

I have a kafka topic with some existing data in it. I want to send that data to elasticsearch index using a logstash config file. Currently my config file only send the data which is being entered while the pipeline is running. So, how do I push existing data to elasticsearch?

---

<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 16, 2020, 7:18am UTC](https://discuss.elastic.co/t/kafka-to-elasticsearch/252487/2 "2020-11-16T07:18:36Z")

</div>

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