Fill an Elasticsearch index with data from another index on same cluster

This is kind of a noob question so please be kind.

I have an elasticsearch cluster (v5) with 3 nodes and two indexes, lets say indexes X and Y(default). I would like to know if there is a way to write data to the index X and automatically write data to index Y. Is there something built in to ES, for doinf so?

I have read about ES mappings, however I am not sure I understand the concept and if this is the way to go.

I have read about watches and triggers, but I think they are only available in paid versions.

You can "reindex" data with:

1 Like

Thanks! Is there a way I can set it up everytime I put data to one of the two indexes?

No there's not sorry.

1 Like

No with this API.

Also there is Cross Cluster Replication that could be interesting Cross-cluster replication | Elasticsearch Guide [7.12] | Elastic .

Maybe with ingestion pipeline, you could do that, I am not sure.

1 Like


Ok thanks a lot for the info!