# Re: "create action does not use \_id for request #79"

**URL:** <https://discuss.elastic.co/t/re-create-action-does-not-use--id-for-request-79/1501>\
**Category:** Logstash\
**Created:** [May 28, 2015, 5:17pm UTC](https://discuss.elastic.co/t/re-create-action-does-not-use--id-for-request-79/1501 "2015-05-28T17:17:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elastic\_paul](https://avatars.discourse-cdn.com/v4/letter/e/ebca7d/32.png) [@elastic\_paul](https://discuss.elastic.co/u/elastic_paul)\
**Post date:** [May 28, 2015, 5:17pm UTC](https://discuss.elastic.co/t/re-create-action-does-not-use--id-for-request-79/1501/1 "2015-05-28T17:17:30Z")

</div>

create action does not use \_id for request #79  
hxxps://github.com/logstash-plugins/logstash-output-elasticsearch/issues/79

This means that I can not use my own deduplication where I manually set the document\_id to a given hash. My document\_id will not be the same as the \_id that is being used and so it won't work with action=\>create

Have I got that right?

EDIT: NO! I did not get this right. It failed because ES returns an HTTP code 409 for the duplicate (correctly) but the plugin fails on that code whereas it should accept it when the request is from a "create". See below

Thanks

---

<div class="post-metadata">

**Author:** ![elastic\_paul](https://avatars.discourse-cdn.com/v4/letter/e/ebca7d/32.png) [@elastic\_paul](https://discuss.elastic.co/u/elastic_paul)\
**Post date:** [May 29, 2015, 10:52am UTC](https://discuss.elastic.co/t/re-create-action-does-not-use--id-for-request-79/1501/2 "2015-05-29T10:52:10Z")

</div>

> [@elastic\_paul](#):
>
> hxxps://github.com/logstash-plugins/logstash-output-elasticsearch/issues/79

Got this working. Found this:  
Allow response code 409 when using 'create' action #121  
hxxps://github.com/logstash-plugins/logstash-output-elasticsearch/issues/121

Manually changed the file and it now works. Have to allow a code 409 response code when using create.

---

<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, 5:39am UTC](https://discuss.elastic.co/t/re-create-action-does-not-use--id-for-request-79/1501/3 "2017-07-06T05:39:04Z")

</div>


