# Lifecycle policy to a different cluster

**URL:** <https://discuss.elastic.co/t/lifecycle-policy-to-a-different-cluster/224257>\
**Category:** Elasticsearch\
**Created:** [March 19, 2020, 11:22am UTC](https://discuss.elastic.co/t/lifecycle-policy-to-a-different-cluster/224257 "2020-03-19T11:22:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chiara](https://avatars.discourse-cdn.com/v4/letter/c/db5fbb/32.png) [@chiara](https://discuss.elastic.co/u/chiara)\
**Post date:** [March 19, 2020, 11:22am UTC](https://discuss.elastic.co/t/lifecycle-policy-to-a-different-cluster/224257/1 "2020-03-19T11:22:51Z")

</div>

I would like to maintain data 6 month on my main elasticsearch cluster. Then I would like to apply a lifecycle policy to move indexes to a DIFFERENT cluster. I can't use the same cluster because of security and compliance rules... Is it possible? How can I do that?

Thank you in advance for your help

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [March 29, 2020, 2:29pm UTC](https://discuss.elastic.co/t/lifecycle-policy-to-a-different-cluster/224257/2 "2020-03-29T14:29:16Z")

</div>

ILM does not support moving indices to a different cluster. You could create periodic snapshots and move data across that way or use cross-cluster replication to move data across in real time.

---

<div class="post-metadata">

**Author:** ![chiara](https://avatars.discourse-cdn.com/v4/letter/c/db5fbb/32.png) [@chiara](https://discuss.elastic.co/u/chiara)\
**Post date:** [March 30, 2020, 7:46am UTC](https://discuss.elastic.co/t/lifecycle-policy-to-a-different-cluster/224257/3 "2020-03-30T07:46:32Z")

</div>

I would like some further clarification:  
I need to replicate just indexes older than 6 months. is it possible to dynamically select them using either periodic snapshots or cross-cluster replication?  
Real time replication is not required, I want to move just read-only indexes...  
If I choose the snapshot solution, I need to copy data on a temporary repository and then move data to the second cluster, correct?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 27, 2020, 7:46am UTC](https://discuss.elastic.co/t/lifecycle-policy-to-a-different-cluster/224257/4 "2020-04-27T07:46:45Z")

</div>

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