# Rollup, removing the rolled-up data safely?

**URL:** <https://discuss.elastic.co/t/rollup-removing-the-rolled-up-data-safely/138929>\
**Category:** Elasticsearch\
**Created:** [July 6, 2018, 1:45pm UTC](https://discuss.elastic.co/t/rollup-removing-the-rolled-up-data-safely/138929 "2018-07-06T13:45:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Damien\_Alexandre](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/damien_alexandre/32/21566_2.png) [@Damien\_Alexandre](https://discuss.elastic.co/u/Damien_Alexandre)\
**Post date:** [July 6, 2018, 1:45pm UTC](https://discuss.elastic.co/t/rollup-removing-the-rolled-up-data-safely/138929/1 "2018-07-06T13:45:40Z")

</div>

I can't find a way to be sure a document or an index has been rolled-up before removing it.

When using the Rollup API to gain space and get smaller indexes / longer data retention, there is obviously a removing process to engage. But as I understand this is not part of the Rollup features.

So if I configured a Job to Rollup logs older than a month, I should be able to remove raw logs older than a month via DELETE INDEX or Delete By Query. **BUT what if the Rollup did not run yet**? How can I be sure I'm not deleting documents I did not merge yet?!!

Thank you! 🙂

---

<div class="post-metadata">

**Author:** ![Damien\_Alexandre](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/damien_alexandre/32/21566_2.png) [@Damien\_Alexandre](https://discuss.elastic.co/u/Damien_Alexandre)\
**Post date:** [July 12, 2018, 12:33pm UTC](https://discuss.elastic.co/t/rollup-removing-the-rolled-up-data-safely/138929/2 "2018-07-12T12:33:39Z")

</div>

I've written a blog post about this issue - maybe not everyone want to delete the raw data after rolling up, but instead put them to sleep (closing index i.e.). Stills bother me ^^

> **[Using Rollup to merge old logs with Elasticsearch 6.3](https://jolicode.com/blog/using-rollup-to-merge-old-logs-with-elasticsearch-6-3)**
>
> Log storage and analysis is one of the most popular usage of Elasticsearch today1, it's easy and it scales. But quickly enough, adding nodes cost too much money and storing logs from multiple months or years ca

---

<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 9, 2018, 12:33pm UTC](https://discuss.elastic.co/t/rollup-removing-the-rolled-up-data-safely/138929/3 "2018-08-09T12:33:42Z")

</div>

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