# Monitoring history duration not getting updated elastic search 6.8.1

**URL:** https://discuss.elastic.co/t/monitoring-history-duration-not-getting-updated-elastic-search-6-8-1/235465
**Category:** Elasticsearch
**Created:** [June 3, 2020, 5:10am UTC](https://discuss.elastic.co/t/monitoring-history-duration-not-getting-updated-elastic-search-6-8-1/235465 "2020-06-03T05:10:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![pawanpanjwani](https://avatars.discourse-cdn.com/v4/letter/p/ccd318/32.png) [@pawanpanjwani](https://discuss.elastic.co/u/pawanpanjwani)
#### Post date: [June 3, 2020, 5:10am UTC](https://discuss.elastic.co/t/monitoring-history-duration-not-getting-updated-elastic-search-6-8-1/235465/1 "2020-06-03T05:10:23Z")

</div>

Hi, I have been trying to update the monitoring indices duration from default of 7 days to 1 day.

I have tried updating the cluster settings and have also tried updating the elasticsearch.yml.

However the change is not taking effect, and the monitoring indices older than 1 day are not getting deleted. can someone please help me understand why are older indices not getting deleted

Following is the addition that I did to elasticsearch.yml  
`xpack.monitoring.history.duration: 1d `

Also tried updating the cluster settings by hitting the following endpoint

```auto
PUT _cluster/settings
{
  "persistent": {
    "xpack.monitoring.history.duration":"1d"
    }
}

```

After updating these settings I restarted the elastic search cluster using  
`sudo service elasticsearch restart`

However even after doing these changes the settings are not getting updated. version of elasticsearch that i have been using is 6.8.1

---

<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: [July 1, 2020, 5:10am UTC](https://discuss.elastic.co/t/monitoring-history-duration-not-getting-updated-elastic-search-6-8-1/235465/2 "2020-07-01T05:10:32Z")

</div>

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