# How to increase the archive of .monitoring-es-6 indices?

**URL:** <https://discuss.elastic.co/t/how-to-increase-the-archive-of-monitoring-es-6-indices/371879>\
**Category:** Kibana\
**Tags:** elastic-stack-monitoring\
**Created:** [December 12, 2024, 12:43am UTC](https://discuss.elastic.co/t/how-to-increase-the-archive-of-monitoring-es-6-indices/371879 "2024-12-12T00:43:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jijihyo](https://avatars.discourse-cdn.com/v4/letter/j/f17d59/32.png) [@jijihyo](https://discuss.elastic.co/u/jijihyo)\
**Post date:** [December 12, 2024, 12:43am UTC](https://discuss.elastic.co/t/how-to-increase-the-archive-of-monitoring-es-6-indices/371879/1 "2024-12-12T00:43:02Z")

</div>

We are currently using versions 6.5 of elasticsearch and kibana.

Since I need to monitor the server, I want to set the storage period of monitoring indices to 30 days.

```auto
[kibana dev-tools]
PUT _cluster/settings
{
  "persistent": {
    "xpack.monitoring.history.duration": "30d"
  }
}

 [elasticsearch.yml] 
xpack.monitoring.history.duration: "30d"

```

Even though I used the command and elasticsearch.yml options listed below, it seems that data is only kept for up to 7 days.

Can’t users using the free version keep data for more than 7 days?
