# How System Index like .monitoring-es-6-2018.02.06 are being deleted automatically

**URL:** https://discuss.elastic.co/t/how-system-index-like-monitoring-es-6-2018-02-06-are-being-deleted-automatically/119578
**Category:** Elasticsearch
**Created:** [February 13, 2018, 5:55am UTC](https://discuss.elastic.co/t/how-system-index-like-monitoring-es-6-2018-02-06-are-being-deleted-automatically/119578 "2018-02-13T05:55:49Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Hanish\_Bansal](https://avatars.discourse-cdn.com/v4/letter/h/e36b37/32.png) [@Hanish\_Bansal](https://discuss.elastic.co/u/Hanish_Bansal)
#### Post date: [February 13, 2018, 5:55am UTC](https://discuss.elastic.co/t/how-system-index-like-monitoring-es-6-2018-02-06-are-being-deleted-automatically/119578/1 "2018-02-13T05:55:49Z")

</div>

We are using basic license of X-PACK. All system indexes like .monitoring-es-6-2018.02.06, .monitoring-kibana-6-2018.02.06 are being deleted after 7 days automatically.

I am curious to know how these are being deleted? Is there any scheduled process for deleting such system indexes?

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [February 13, 2018, 6:07am UTC](https://discuss.elastic.co/t/how-system-index-like-monitoring-es-6-2018-02-06-are-being-deleted-automatically/119578/2 "2018-02-13T06:07:15Z")

</div>

Yes. Xpack basic removes monitoring data older than 7 days.

---

<div class="post-metadata">

### Author: ![Hanish\_Bansal](https://avatars.discourse-cdn.com/v4/letter/h/e36b37/32.png) [@Hanish\_Bansal](https://discuss.elastic.co/u/Hanish_Bansal)
#### Post date: [February 13, 2018, 6:11am UTC](https://discuss.elastic.co/t/how-system-index-like-monitoring-es-6-2018-02-06-are-being-deleted-automatically/119578/3 "2018-02-13T06:11:58Z")

</div>

How XPack removes the indexes which are 7 days older?

Actually we also create day wise indexes to keep daily logs, we don't need logs of 15 days back so we want to delete the data automatically. Currently we are doing it via shell script to remove old data of 15 days back.

Is there any better way to do the same (Remove old index after specific interval)?

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [February 13, 2018, 7:28am UTC](https://discuss.elastic.co/t/how-system-index-like-monitoring-es-6-2018-02-06-are-being-deleted-automatically/119578/4 "2018-02-13T07:28:23Z")

</div>

You can use curator and automate that somewhat in your cron. Still it's like a script.  
Nothing internal that you can use.

---

<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: [March 13, 2018, 7:28am UTC](https://discuss.elastic.co/t/how-system-index-like-monitoring-es-6-2018-02-06-are-being-deleted-automatically/119578/5 "2018-03-13T07:28:31Z")

</div>

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