# How to enable slow search requests log rotation in ES 5.6

**URL:** <https://discuss.elastic.co/t/how-to-enable-slow-search-requests-log-rotation-in-es-5-6/223081>\
**Category:** Elasticsearch\
**Created:** [March 11, 2020, 9:22am UTC](https://discuss.elastic.co/t/how-to-enable-slow-search-requests-log-rotation-in-es-5-6/223081 "2020-03-11T09:22:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vishal\_0611](https://avatars.discourse-cdn.com/v4/letter/v/a88e4f/32.png) [@Vishal\_0611](https://discuss.elastic.co/u/Vishal_0611)\
**Post date:** [March 11, 2020, 9:22am UTC](https://discuss.elastic.co/t/how-to-enable-slow-search-requests-log-rotation-in-es-5-6/223081/1 "2020-03-11T09:22:12Z")

</div>

Hi,

I am using ES 5.6. I want to enable log rotation of elasticsearch.log, elasticsearch\_index\_search\_slowlog.log and elasticsearch\_index\_indexing\_slowlog.log

I learnt that its taken care from log4j2.properties but I need control of the configuration. Any idea how to tweak logging from log4j2.properties or should we enable linux logroation?

---

<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:** [April 8, 2020, 9:22am UTC](https://discuss.elastic.co/t/how-to-enable-slow-search-requests-log-rotation-in-es-5-6/223081/2 "2020-04-08T09:22:14Z")

</div>

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