# How to set elasticsearch upsert content in logstash

**URL:** <https://discuss.elastic.co/t/how-to-set-elasticsearch-upsert-content-in-logstash/66792>\
**Category:** Logstash\
**Created:** [November 21, 2016, 10:16pm UTC](https://discuss.elastic.co/t/how-to-set-elasticsearch-upsert-content-in-logstash/66792 "2016-11-21T22:16:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![satheeshravir](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@satheeshravir](https://discuss.elastic.co/u/satheeshravir)\
**Post date:** [November 21, 2016, 10:16pm UTC](https://discuss.elastic.co/t/how-to-set-elasticsearch-upsert-content-in-logstash/66792/1 "2016-11-21T22:16:01Z")

</div>

I am trying to index/update same event as json chunks (due to event size limit set by input file plugin) using elastic search output plugin. I can see only the last updated chunk in the elastisearch index. I would like to add new fields to the existing index rather than completely replacing with the new fields. Please suggest a way to accomplish my use case. Thank you.

---

<div class="post-metadata">

**Author:** ![satheeshravir](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@satheeshravir](https://discuss.elastic.co/u/satheeshravir)\
**Post date:** [November 22, 2016, 5:33pm UTC](https://discuss.elastic.co/t/how-to-set-elasticsearch-upsert-content-in-logstash/66792/2 "2016-11-22T17:33:19Z")

</div>

After a while, I came across this issue in GitHub [https://github.com/logstash-plugins/logstash-output-elasticsearch/issues/383](https://github.com/logstash-plugins/logstash-output-elasticsearch/issues/383)

Dynamic action isn't working with upsert

---

<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 20, 2016, 5:33pm UTC](https://discuss.elastic.co/t/how-to-set-elasticsearch-upsert-content-in-logstash/66792/3 "2016-12-20T17:33:22Z")

</div>

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