# How to archive data from a Transform?

**URL:** https://discuss.elastic.co/t/how-to-archive-data-from-a-transform/310313
**Category:** Elasticsearch
**Created:** [July 21, 2022, 2:55pm UTC](https://discuss.elastic.co/t/how-to-archive-data-from-a-transform/310313 "2022-07-21T14:55:50Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![bianca6](https://avatars.discourse-cdn.com/v4/letter/b/85e7bf/32.png) [@bianca6](https://discuss.elastic.co/u/bianca6)
#### Post date: [July 21, 2022, 2:55pm UTC](https://discuss.elastic.co/t/how-to-archive-data-from-a-transform/310313/1 "2022-07-21T14:55:50Z")

</div>

Hi,

A Transform add data to a unique index.  
This index is getting too big.  
I would like to store the data (more than 2 days old) to another warm index.

How could I achieve that?  
Thanks a lot for your time!

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [July 21, 2022, 10:45pm UTC](https://discuss.elastic.co/t/how-to-archive-data-from-a-transform/310313/2 "2022-07-21T22:45:47Z")

</div>

You will want to look at [ILM](https://www.elastic.co/guide/en/elasticsearch/reference/current/index-lifecycle-management.html) to manage that for you.

---

<div class="post-metadata">

### Author: ![bianca6](https://avatars.discourse-cdn.com/v4/letter/b/85e7bf/32.png) [@bianca6](https://discuss.elastic.co/u/bianca6)
#### Post date: [July 26, 2022, 8:17am UTC](https://discuss.elastic.co/t/how-to-archive-data-from-a-transform/310313/3 "2022-07-26T08:17:35Z")

</div>

I try the alias + rollover.  
The index are well created, and can change their lifecycle status, that's good...

But there is a huge problem with data integrity.

Because if the index is "n" minutes old, it will be archive and a new one will be create, but a Transform can update the recent data, so quite often the data is duplicated between two indexes (0003 and 0004 for example).

How can I set something as a rollover only on the "old data" ? The 10 most recent minutes should stay active.

---

<div class="post-metadata">

### Author: ![bianca6](https://avatars.discourse-cdn.com/v4/letter/b/85e7bf/32.png) [@bianca6](https://discuss.elastic.co/u/bianca6)
#### Post date: [July 26, 2022, 8:20am UTC](https://discuss.elastic.co/t/how-to-archive-data-from-a-transform/310313/4 "2022-07-26T08:20:57Z")

</div>

This is the same ID but on different indexes, maybe I can delete the old ones, but how?

![image](https://us1.discourse-cdn.com/elastic/original/3X/f/f/ff2e9590ad48d49fd677ac14c4e08e11e60302fb.png)

---

<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: [August 23, 2022, 8:21am UTC](https://discuss.elastic.co/t/how-to-archive-data-from-a-transform/310313/5 "2022-08-23T08:21:09Z")

</div>

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