# Xpack.monitoring.history.duration

**URL:** https://discuss.elastic.co/t/xpack-monitoring-history-duration/120732
**Category:** Elasticsearch
**Created:** [February 20, 2018, 10:07pm UTC](https://discuss.elastic.co/t/xpack-monitoring-history-duration/120732 "2018-02-20T22:07:16Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![eramitsinha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eramitsinha/32/35032_2.png) [@eramitsinha](https://discuss.elastic.co/u/eramitsinha)
#### Post date: [February 20, 2018, 10:07pm UTC](https://discuss.elastic.co/t/xpack-monitoring-history-duration/120732/1 "2018-02-20T22:07:16Z")

</div>

Hi,

I am using ES 5.2.2 with X-Pack 5.2.2. I am having main cluster and monitoring cluster where I export monitoring data from main cluster. Refer release docs

[https://www.elastic.co/guide/en/x-pack/5.2/monitoring-settings.html](https://www.elastic.co/guide/en/x-pack/5.2/monitoring-settings.html)  
...............................................................................................................................................  
xpack.monitoring.history.duration  
Sets the retention duration beyond which the indices created by a Monitoring exporter will be automatically deleted. Defaults to 7d (7 days).

This setting has a minimum value of 1d (1 day) to ensure that something is being monitored, and it cannot be disabled.

Important  
This setting currently only impacts local-type exporters. Indices created using the http exporter will not be deleted automatically.

...............................................................................................................................................  
I am using Default setting, I am seeing its keeping .monitoring Indices only for 7 days i.e its deleting older index. Is this expected.

Thanks,  
Amit.

---

<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 20, 2018, 10:09pm UTC](https://discuss.elastic.co/t/xpack-monitoring-history-duration/120732/2 "2018-02-20T22:09:01Z")

</div>

> [@eramitsinha](#):
>
> I am using Default setting, I am seeing its keeping .monitoring Indices only for 7 days i.e its deleting older index. Is this expected.

The default is 7 days, so after that things will be removed. This is expected.

---

<div class="post-metadata">

### Author: ![eramitsinha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eramitsinha/32/35032_2.png) [@eramitsinha](https://discuss.elastic.co/u/eramitsinha)
#### Post date: [February 20, 2018, 10:09pm UTC](https://discuss.elastic.co/t/xpack-monitoring-history-duration/120732/3 "2018-02-20T22:09:52Z")

</div>

Thank you Mark. 🙂

---

<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 20, 2018, 10:09pm UTC](https://discuss.elastic.co/t/xpack-monitoring-history-duration/120732/4 "2018-03-20T22:09:55Z")

</div>

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