# Monitoring elastic search retention period not working

**URL:** https://discuss.elastic.co/t/monitoring-elastic-search-retention-period-not-working/162233
**Category:** Elasticsearch
**Tags:** elastic-stack-monitoring
**Created:** [December 27, 2018, 12:40pm UTC](https://discuss.elastic.co/t/monitoring-elastic-search-retention-period-not-working/162233 "2018-12-27T12:40:51Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Hitesh\_Baldaniya1](https://avatars.discourse-cdn.com/v4/letter/h/45deac/32.png) [@Hitesh\_Baldaniya1](https://discuss.elastic.co/u/Hitesh_Baldaniya1)
#### Post date: [December 27, 2018, 12:40pm UTC](https://discuss.elastic.co/t/monitoring-elastic-search-retention-period-not-working/162233/1 "2018-12-27T12:40:51Z")

</div>

Hi Team,

We have enabled monitoring on cloud.elastic server which is dedicated monitoring server.

We have added following setting on monitoring server.  
`xpack.monitoring.history.duration` we set it as '1d' still the older indexes were not removed automatically.

It is not working as expected and disk is getting filled with data and after couple of week server is getting restarted/stopped, how can we solve this issue?

---

<div class="post-metadata">

### Author: ![chrisronline](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrisronline/32/28230_2.png) [@chrisronline](https://discuss.elastic.co/u/chrisronline)
#### Post date: [January 2, 2019, 6:01pm UTC](https://discuss.elastic.co/t/monitoring-elastic-search-retention-period-not-working/162233/2 "2019-01-02T18:01:38Z")

</div>

Hi @Hitesh_Baldaniya1,

What is your current license level for the monitoring cluster on Elastic Cloud?

---

<div class="post-metadata">

### Author: ![Hitesh\_Baldaniya1](https://avatars.discourse-cdn.com/v4/letter/h/45deac/32.png) [@Hitesh\_Baldaniya1](https://discuss.elastic.co/u/Hitesh_Baldaniya1)
#### Post date: [January 3, 2019, 3:53am UTC](https://discuss.elastic.co/t/monitoring-elastic-search-retention-period-not-working/162233/3 "2019-01-03T03:53:30Z")

</div>

Hi @chrisronline,

Current license level is basic only ☹.

---

<div class="post-metadata">

### Author: ![chrisronline](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrisronline/32/28230_2.png) [@chrisronline](https://discuss.elastic.co/u/chrisronline)
#### Post date: [January 3, 2019, 2:18pm UTC](https://discuss.elastic.co/t/monitoring-elastic-search-retention-period-not-working/162233/4 "2019-01-03T14:18:00Z")

</div>

HI @Hitesh_Baldaniya1,

Unfortunately, the basic license does not include this feature. See: [https://github.com/elastic/elasticsearch/blob/master/x-pack/plugin/core/src/main/java/org/elasticsearch/license/XPackLicenseState.java#L515](https://github.com/elastic/elasticsearch/blob/master/x-pack/plugin/core/src/main/java/org/elasticsearch/license/XPackLicenseState.java#L515)

---

<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: [January 31, 2019, 2:18pm UTC](https://discuss.elastic.co/t/monitoring-elastic-search-retention-period-not-working/162233/5 "2019-01-31T14:18:03Z")

</div>

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