Parse 2 times csv files

Hello,
I want to know how elasticsearch works when i parse 2 times the same csv file with the same data
Thank you

If you are using the same id for docs then it will reindex old data.
If you are using different ids or no id at all then new content will be added

How can i declare the id? Is this in the configuration file of logstash?

Thank you for your answer

Yes. See https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-document_id

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