# Pickup Updates from ElasticSearch Index and send to Kafka

**URL:** <https://discuss.elastic.co/t/pickup-updates-from-elasticsearch-index-and-send-to-kafka/209519>\
**Category:** Elasticsearch\
**Created:** [November 26, 2019, 1:12pm UTC](https://discuss.elastic.co/t/pickup-updates-from-elasticsearch-index-and-send-to-kafka/209519 "2019-11-26T13:12:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![giridhar\_varma](https://avatars.discourse-cdn.com/v4/letter/g/54ee81/32.png) [@giridhar\_varma](https://discuss.elastic.co/u/giridhar_varma)\
**Post date:** [November 26, 2019, 1:12pm UTC](https://discuss.elastic.co/t/pickup-updates-from-elasticsearch-index-and-send-to-kafka/209519/1 "2019-11-26T13:12:46Z")

</div>

Hello Team,  
Need your guidance for my problem

Requirement:-  
we push the updates into our ES Index from our source, and we want to pick up those updates and further send to Kafka topic using kafka output plugin

Question: How to pick up only the updates and send, is there a way to identify the updates(new record update, update to existing record update, delete event update)

Please help guide

The Solution i am looking for is:-  
To only pick up UPDATES not the whole of index data everytime we schedule and send to kafka topic - below data sends all of data every time we send

Kafka output plugin code

input{  
elasticsearch{  
hosts =\> "xxxxxxxxxxxx01:9201"  
index =\> "testcaseindex"  
size =\> 1000  
scroll =\> "5m"  
docinfo =\> true  
}  
}

output{  
kafka{  
codec =\> json  
topic\_id =\> "POC.CASE.TOPIC"  
bootstrap\_servers =\> "[XXXXXXXX01.XX.XXXX.com:9092](http://xxxxxxxx01.xx.xxxx.com:9092/)"  
}  
}

RUN with below  
bin/logstash -f logstash-filter.conf

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [November 27, 2019, 6:05am UTC](https://discuss.elastic.co/t/pickup-updates-from-elasticsearch-index-and-send-to-kafka/209519/2 "2019-11-27T06:05:41Z")

</div>

This is a Logstash question, so please do not open multiple threads for the same question.

---

<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:** [December 25, 2019, 6:08am UTC](https://discuss.elastic.co/t/pickup-updates-from-elasticsearch-index-and-send-to-kafka/209519/3 "2019-12-25T06:08:55Z")

</div>

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