Duplicate ID

How to delete / avoid duplicate ID's cause I have few similar logs which are comming from wazuh, so I would like to remove duplicate ids .

If you use the id as the document id and use the create API that should reject insertion of a second document with the same id.

Can you please share some usable code if possible.

Thanks in advance.

Sure https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html#operation-type

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