New index from existing index

Hi,

Is it possible to create a new index in Elastic, from an existing index, fx if you want to flatten your index?

Regards

Søren

The reindex API would help?

Yeah probably. So would it be possible to have one index coming from fx Logstash continously, and if the need would come to have another index, fx a flattened one from the original index, then would it be possible to create the new index from the first index and then it would always be up to date?

Regards

Søren

Reindex API is a one shot operation. It does not run in the background to monitor changes from the source index.