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

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

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.

1 Like