# Index retention

**URL:** <https://community.graylog.org/t/index-retention/3256>\
**Category:** Graylog Central (peer support)\
**Created:** [November 22, 2017, 5:11pm UTC](https://community.graylog.org/t/index-retention/3256 "2017-11-22T17:11:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shachbo](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@shachbo](https://community.graylog.org/u/shachbo)\
**Post date:** [November 22, 2017, 5:11pm UTC](https://community.graylog.org/t/index-retention/3256/1 "2017-11-22T17:11:03Z")

</div>

i create an index set.  
prefix sha  
i set the Index rotation to size with Xgb  
and the index retention to delete  
it starts with sha\_0  
reaches the limit of XGB  
creates the sha\_1 index.  
but i still see the sha\_0 with an option to delete.  
doesnt it suppose to be auotomaticly?

---

<div class="post-metadata">

**Author:** ![jochen](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jochen/32/8_2.png) [@jochen](https://community.graylog.org/u/jochen)\
**Post date:** [November 22, 2017, 6:23pm UTC](https://community.graylog.org/t/index-retention/3256/2 "2017-11-22T18:23:23Z")

</div>

What’s the full configuration of your index set?  
There’s also an option to specify how many indices to keep.

---

<div class="post-metadata">

**Author:** ![shachbo](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@shachbo](https://community.graylog.org/u/shachbo)\
**Post date:** [November 22, 2017, 6:30pm UTC](https://community.graylog.org/t/index-retention/3256/3 "2017-11-22T18:30:20Z")

</div>

will graylog delete the index only when it reaches the maximum indices configured in the index set?

---

<div class="post-metadata">

**Author:** ![rfinney](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/rfinney/32/961_2.png) [@rfinney](https://community.graylog.org/u/rfinney)\
**Post date:** [November 23, 2017, 4:43am UTC](https://community.graylog.org/t/index-retention/3256/4 "2017-11-23T04:43:10Z")

</div>

Yes, that is correct.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [December 7, 2017, 4:43am UTC](https://community.graylog.org/t/index-retention/3256/5 "2017-12-07T04:43:36Z")

</div>

Closed on December 7, 2017, 4:43am UTC

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