# An we add log retentions for elasticsearch, logstash, kibana and metric beat

**URL:** <https://discuss.elastic.co/t/an-we-add-log-retentions-for-elasticsearch-logstash-kibana-and-metric-beat/263096>\
**Category:** Logstash\
**Created:** [February 3, 2021, 8:37am UTC](https://discuss.elastic.co/t/an-we-add-log-retentions-for-elasticsearch-logstash-kibana-and-metric-beat/263096 "2021-02-03T08:37:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Somesh\_ng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/somesh_ng/32/76440_2.png) [@Somesh\_ng](https://discuss.elastic.co/u/Somesh_ng)\
**Post date:** [February 3, 2021, 8:37am UTC](https://discuss.elastic.co/t/an-we-add-log-retentions-for-elasticsearch-logstash-kibana-and-metric-beat/263096/1 "2021-02-03T08:37:59Z")

</div>

Can we add log retentions for elasticsearch, logstash, kibana and metric beat like below in `.yml` file

```auto
    logging.level: debug
    logging.to_files: true
    logging.to_syslog: false
    logging.files:
      path: /logs/elasticsearch
      name: elasticsearch
      keepfiles: 10
      permissions: 0644

```

---

<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:** [March 3, 2021, 8:38am UTC](https://discuss.elastic.co/t/an-we-add-log-retentions-for-elasticsearch-logstash-kibana-and-metric-beat/263096/2 "2021-03-03T08:38:14Z")

</div>

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