# Retention usage

**URL:** <https://community.graylog.org/t/retention-usage/33364>\
**Category:** New to Graylog Community? READ-ME FIRST Guides\
**Created:** [August 29, 2024, 12:28pm UTC](https://community.graylog.org/t/retention-usage/33364 "2024-08-29T12:28:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RyanInsolencee](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/ryaninsolencee/32/15875_2.png) [@RyanInsolencee](https://community.graylog.org/u/RyanInsolencee)\
**Post date:** [August 29, 2024, 12:28pm UTC](https://community.graylog.org/t/retention-usage/33364/1 "2024-08-29T12:28:57Z")

</div>

does Graylog have the ability to let’s say after 60 days close the index and then after 90 days delete the index? if not is there a suitable way for me to be able to do this? cronjob python script etc…

**Helpful Posting Tips:** [Tips for Posting Questions that Get Answers](https://community.graylog.org/t/tips-for-posting-questions-that-get-answers/21828) [Hold down CTRL and link on link to open tips documents in a separate tab]

---

<div class="post-metadata">

**Author:** ![drewmiranda-gl](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/drewmiranda-gl/32/13376_2.png) [@drewmiranda-gl](https://community.graylog.org/u/drewmiranda-gl)\
**Post date:** [August 29, 2024, 6:32pm UTC](https://community.graylog.org/t/retention-usage/33364/2 "2024-08-29T18:32:33Z")

</div>

Graylog has this ability. It does this using 2 concepts:

- Index Rotation - where messages are stored, determines when to create a new index
- Index Retention - how long to keep an index for and what happens when the index is older than the specified limit.

For more details, see [Index Model](https://go2docs.graylog.org/current/setting_up_graylog/index_model.html)
