# Delete Monitoring's old indices

**URL:** https://discuss.elastic.co/t/delete-monitorings-old-indices/76328
**Category:** Elasticsearch
**Created:** [February 24, 2017, 1:28am UTC](https://discuss.elastic.co/t/delete-monitorings-old-indices/76328 "2017-02-24T01:28:00Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![mnozawa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mnozawa/32/15091_2.png) [@mnozawa](https://discuss.elastic.co/u/mnozawa)
#### Post date: [February 24, 2017, 1:28am UTC](https://discuss.elastic.co/t/delete-monitorings-old-indices/76328/1 "2017-02-24T01:28:00Z")

</div>

Hi,

Is there any smart way to delete old indices of Monitoring(Marvel)?  
Simply delete indices, using elasticsearch-curator or any other way?

thanks

---

<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: [February 24, 2017, 1:33am UTC](https://discuss.elastic.co/t/delete-monitorings-old-indices/76328/2 "2017-02-24T01:33:55Z")

</div>

Curator can do it, though for 5.X it does only store 7 days by default.

---

<div class="post-metadata">

### Author: ![mnozawa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mnozawa/32/15091_2.png) [@mnozawa](https://discuss.elastic.co/u/mnozawa)
#### Post date: [February 24, 2017, 1:41am UTC](https://discuss.elastic.co/t/delete-monitorings-old-indices/76328/3 "2017-02-24T01:41:19Z")

</div>

thanks Mark.

> [@warkolm](#):
>
> for 5.X it does only store 7 days by default.

I did not know that!  
I will try to configure the "xpack.monitoring.history.duration" setting.

---

<div class="post-metadata">

### Author: ![bohyun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bohyun/32/10087_2.png) [@bohyun](https://discuss.elastic.co/u/bohyun)
#### Post date: [February 24, 2017, 2:14am UTC](https://discuss.elastic.co/t/delete-monitorings-old-indices/76328/4 "2017-02-24T02:14:34Z")

</div>

What version are you on? We added a functionality to automatically delete the indices in Marvel 2.3 by setting

marvel.history.duration  
Sets the retention duration beyond which the indices created by Marvel will be automatically deleted. Defaults to 7 days. Set to -1 to disable automatic deletion of Marvel indices.

For more marvel configuration options, please visit  
[https://www.elastic.co/guide/en/marvel/current/configuration.html](https://www.elastic.co/guide/en/marvel/current/configuration.html)

-Bohyun

---

<div class="post-metadata">

### Author: ![mnozawa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mnozawa/32/15091_2.png) [@mnozawa](https://discuss.elastic.co/u/mnozawa)
#### Post date: [February 24, 2017, 5:43am UTC](https://discuss.elastic.co/t/delete-monitorings-old-indices/76328/5 "2017-02-24T05:43:26Z")

</div>

thanks, Bohyun

I'm using marvel 1.3 and X-Pack(Monitoring) 5.2.  
In case using 2.x, I will use it 🙂

---

<div class="post-metadata">

### Author: ![bohyun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bohyun/32/10087_2.png) [@bohyun](https://discuss.elastic.co/u/bohyun)
#### Post date: [February 24, 2017, 6:22am UTC](https://discuss.elastic.co/t/delete-monitorings-old-indices/76328/6 "2017-02-24T06:22:27Z")

</div>

@mnozawa

Sounds great! Please let us know your feedback on X-Pack monitoring 5.2!

Thanks,  
Bohyun

---

<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 24, 2017, 6:22am UTC](https://discuss.elastic.co/t/delete-monitorings-old-indices/76328/7 "2017-03-24T06:22:28Z")

</div>

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