# Send Only updates to Kafka topic

**URL:** <https://discuss.elastic.co/t/send-only-updates-to-kafka-topic/209524>\
**Category:** Logstash\
**Created:** [November 26, 2019, 1:45pm UTC](https://discuss.elastic.co/t/send-only-updates-to-kafka-topic/209524 "2019-11-26T13:45:15Z")\
**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:45pm UTC](https://discuss.elastic.co/t/send-only-updates-to-kafka-topic/209524/1 "2019-11-26T13:45:15Z")

</div>

Hi Team,  
we need to send the updates received into ElasticSearch Index(example: testcaseindex) to Kafka topic

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

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:04am UTC](https://discuss.elastic.co/t/send-only-updates-to-kafka-topic/209524/2 "2019-11-27T06:04:48Z")

</div>

I do not think the elasticsearch input plugin has anything similar to the `sql_last_value` parameter in the JDBC plugin, so it is likely not able to select only updates according to some criteria.

---

<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:04am UTC](https://discuss.elastic.co/t/send-only-updates-to-kafka-topic/209524/3 "2019-12-25T06:04:50Z")

</div>

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