# Retention of logfiles based on log level

**URL:** <https://discuss.elastic.co/t/retention-of-logfiles-based-on-log-level/142923>\
**Category:** Elasticsearch\
**Created:** [August 3, 2018, 2:08pm UTC](https://discuss.elastic.co/t/retention-of-logfiles-based-on-log-level/142923 "2018-08-03T14:08:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Veel\_Koffiedrinken](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/veel_koffiedrinken/32/20893_2.png) [@Veel\_Koffiedrinken](https://discuss.elastic.co/u/Veel_Koffiedrinken)\
**Post date:** [August 3, 2018, 2:08pm UTC](https://discuss.elastic.co/t/retention-of-logfiles-based-on-log-level/142923/1 "2018-08-03T14:08:59Z")

</div>

Hi,

We would like to keep log messages of type ERROR twice as long as the other log levels. How do we accomplish that with ElasticSearch 3.6.2 ? We are using your docker image.

---

<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:** [August 31, 2018, 2:09pm UTC](https://discuss.elastic.co/t/retention-of-logfiles-based-on-log-level/142923/2 "2018-08-31T14:09:02Z")

</div>

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