We have a logstash pipeline that is continuously indexing data in our Elasticsearch. Due to mapping issues, we have to reindex our current index to a new index. What is the recommended way to do reindexing while the logstash pipeline is actively indexing?
Our approach was to first update the logstash pipeline to the new index so that indexing continues to happen and then run the reindexing operation to the new index. This way we will preserve the old docs and make sure we don't loose the new docs (while the process of reindexing itself is happening).
Is this the best way to go about this process or is there any other way to make sure no data loss happens during reindexing operation?