# Why auto delete the monitoring data(7 days) about es and kibana how to change it

**URL:** https://discuss.elastic.co/t/why-auto-delete-the-monitoring-data-7-days-about-es-and-kibana-how-to-change-it/103281
**Category:** Kibana
**Created:** [October 10, 2017, 1:44am UTC](https://discuss.elastic.co/t/why-auto-delete-the-monitoring-data-7-days-about-es-and-kibana-how-to-change-it/103281 "2017-10-10T01:44:51Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)
#### Post date: [October 10, 2017, 2:18am UTC](https://discuss.elastic.co/t/why-auto-delete-the-monitoring-data-7-days-about-es-and-kibana-how-to-change-it/103281/2 "2017-10-10T02:18:26Z")

</div>

If you are using the free "basic" license for X-Pack, then the monitoring history is limited to 7 days.

If you are using a paid license (gold or platinum) then you can configure the expiry with the `xpack.monitoring.history.duration` setting in your `elasticsearch.yml` file.

---

_[View the full topic](https://discuss.elastic.co/t/why-auto-delete-the-monitoring-data-7-days-about-es-and-kibana-how-to-change-it/103281)._
