# How to disable Monitoring or to make a retention period of 7 days only?

**URL:** https://discuss.elastic.co/t/how-to-disable-monitoring-or-to-make-a-retention-period-of-7-days-only/146077
**Category:** Elasticsearch
**Created:** [August 26, 2018, 6:58pm UTC](https://discuss.elastic.co/t/how-to-disable-monitoring-or-to-make-a-retention-period-of-7-days-only/146077 "2018-08-26T18:58:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![uhlhosting](https://avatars.discourse-cdn.com/v4/letter/u/c2a13f/32.png) [@uhlhosting](https://discuss.elastic.co/u/uhlhosting)
#### Post date: [August 26, 2018, 6:58pm UTC](https://discuss.elastic.co/t/how-to-disable-monitoring-or-to-make-a-retention-period-of-7-days-only/146077/1 "2018-08-26T18:58:05Z")

</div>

I have this situation where

```
.monitoring-es-6-2018.08.25
Health: green Green
2.4m
1.1 GB
0 /s
6.14 /s
0
.monitoring-es-6-2018.08.22
Health: green Green
2.3m
1.1 GB
0 /s
6.14 /s
0
.monitoring-es-6-2018.08.24
Health: green Green
2.3m
1.1 GB
0 /s
6.14 /s
0
.monitoring-es-6-2018.08.21
Health: green Green
2.3m
1.1 GB
0 /s
6.14 /s
0
.monitoring-es-6-2018.08.20
Health: green Green
2.3m
1.1 GB
0 /s
6.14 /s
0
.monitoring-es-6-2018.08.19
Health: green Green
2.3m
1.1 GB
0 /s
6.14 /s
0
.monitoring-es-6-2018.08.23
Health: green Green
2.2m
1.1 GB
0 /s
6.14 /s
0
.monitoring-es-6-2018.08.26
Health: green Green
1.9m
960.0 MB
151.95 /s
6.14 /s
0

```

How can I make sure that this so called  
.monitoring-es-6-\* will not be so huge or so many at numbers, maybe a logrotation or retention policy. I do not know exactly how come this logs are way bigger than the whole data collected by the logstash.

If someone can give me an option since I have 20 GB real logs, and 20 GB logs from monitoring.

---

<div class="post-metadata">

### Author: ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)
#### Post date: [September 3, 2018, 8:46am UTC](https://discuss.elastic.co/t/how-to-disable-monitoring-or-to-make-a-retention-period-of-7-days-only/146077/2 "2018-09-03T08:46:15Z")

</div>

Here are the config options for for monitoring: [https://www.elastic.co/guide/en/elasticsearch/reference/current/monitoring-settings.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/monitoring-settings.html)

You might be interested to modify the collection interval.

---

<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: [October 1, 2018, 8:46am UTC](https://discuss.elastic.co/t/how-to-disable-monitoring-or-to-make-a-retention-period-of-7-days-only/146077/3 "2018-10-01T08:46:22Z")

</div>

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