Replacing _id field

there is _id field auto generated by Elasticsearch which differ the each doc
So I have an unique field to set as _id field
I want to that field as _id for doc in Logstash conf
How do to that

You shoud use the document_id option as described in the documentation.

Use the following option in your Elasticsearch output:

document_id => "%{[your_id_field]}"

Yes I did the same thing after searching the documentations
I got know one new things that field should be lowercase
document_id => "%{api_request_id}"

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