Parse 2 times csv files


(Mouad Mimouni) #1

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


(David Pilato) #2

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


(Mouad Mimouni) #3

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

Thank you for your answer


(David Pilato) #4

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


(system) #5

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