# Update record in Kafka-Elastic Pipelines through Logstash

**URL:** <https://discuss.elastic.co/t/update-record-in-kafka-elastic-pipelines-through-logstash/348401>\
**Category:** Logstash\
**Created:** [December 1, 2023, 7:31am UTC](https://discuss.elastic.co/t/update-record-in-kafka-elastic-pipelines-through-logstash/348401 "2023-12-01T07:31:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alberuni\_Beruni](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alberuni_beruni/32/122428_2.png) [@Alberuni\_Beruni](https://discuss.elastic.co/u/Alberuni_Beruni)\
**Post date:** [December 1, 2023, 7:31am UTC](https://discuss.elastic.co/t/update-record-in-kafka-elastic-pipelines-through-logstash/348401/1 "2023-12-01T07:31:51Z")

</div>

Hi,  
I am directly ingesting kafka recored from kafka topic to Elasticsearch server, if there is coming records is updated with the existing in Elasticsearch server so how can i handle it with logstash that if creation it ingesting and if updating with existing record it update the record.  
eg. existing record in Elasticsearch - \> id = 1 , name=jhon and updated record id=1, name=smith  
so how can i handle it as we know unique \_id is created for each record in Elasticsearch.  
sorry for english i hope you understand my question. i am new in Elasticsearch  
Thanks

---

<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 29, 2023, 7:32am UTC](https://discuss.elastic.co/t/update-record-in-kafka-elastic-pipelines-through-logstash/348401/2 "2023-12-29T07:32:12Z")

</div>

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