# Update to elasticsearch fails when lines are parsed one after another

**URL:** <https://discuss.elastic.co/t/update-to-elasticsearch-fails-when-lines-are-parsed-one-after-another/56055>\
**Category:** Logstash\
**Created:** [July 21, 2016, 4:15am UTC](https://discuss.elastic.co/t/update-to-elasticsearch-fails-when-lines-are-parsed-one-after-another/56055 "2016-07-21T04:15:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aviv.ratzon](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@aviv.ratzon](https://discuss.elastic.co/u/aviv.ratzon)\
**Post date:** [July 21, 2016, 4:15am UTC](https://discuss.elastic.co/t/update-to-elasticsearch-fails-when-lines-are-parsed-one-after-another/56055/1 "2016-07-21T04:15:46Z")

</div>

Hi there,  
I'm using logstash to send parsed log data to ES. If some field is the same as the one of the previous line, only a few fields are kept and logstash should update the document that was created by the previous line.

The problem is as I understand that logstash sends bulk requests, and so each time I get document not found exception, becaus the previous line's documnet hasn't been created yet.

Does anybody know some kind of workaround for this?

Thank you,  
Aviv

---

<div class="post-metadata">

**Author:** ![muhamadli302](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@muhamadli302](https://discuss.elastic.co/u/muhamadli302)\
**Post date:** [July 21, 2016, 12:53pm UTC](https://discuss.elastic.co/t/update-to-elasticsearch-fails-when-lines-are-parsed-one-after-another/56055/2 "2016-07-21T12:53:26Z")

</div>

Hi Aviv,

Take a look at the [elasticsearch filter plugin] ([https://www.elastic.co/guide/en/logstash/current/plugins-filters-elasticsearch.html](https://www.elastic.co/guide/en/logstash/current/plugins-filters-elasticsearch.html)), it might help you.

---

<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:** [July 6, 2017, 4:47am UTC](https://discuss.elastic.co/t/update-to-elasticsearch-fails-when-lines-are-parsed-one-after-another/56055/3 "2017-07-06T04:47:03Z")

</div>

Closed on July 6, 2017, 4:47am UTC


