# Kibana7.17.10 log rotation

**URL:** <https://discuss.elastic.co/t/kibana7-17-10-log-rotation/342313>\
**Category:** Kibana\
**Created:** [September 5, 2023, 7:56am UTC](https://discuss.elastic.co/t/kibana7-17-10-log-rotation/342313 "2023-09-05T07:56:11Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![chouben](https://avatars.discourse-cdn.com/v4/letter/c/e495f1/32.png) [@chouben](https://discuss.elastic.co/u/chouben)\
**Post date:** [September 5, 2023, 11:47am UTC](https://discuss.elastic.co/t/kibana7-17-10-log-rotation/342313/4 "2023-09-05T11:47:02Z")

</div>

Here you go - please notice that you need to alter the service file:  
Cfr. [How to disable saving Kibana logs to /var/log/kibana](https://discuss.elastic.co/t/how-to-disable-saving-kibana-logs-to-var-log-kibana/296447)

```auto
#https://discuss.elastic.co/t/how-to-disable-saving-kibana-logs-to-var-log-kibana/296447
#https://discuss.elastic.co/t/logging-configuration-issues-in-kibana-7-16/295517
# REQUIRED: disable hardcoded logging in /etc/systemd/system/kibana.service

logging:
  appenders:
    file:
      type: file
      fileName: /<path>/log/kibana/kibana.log
      layout:
        type: pattern
    rolling-file:
      type: rolling-file
      fileName: /<path>/log/kibana/kibana.log
      policy:
        type: size-limit
        size: 50mb
      strategy:
        type: numeric
        pattern: '-%i'
        max: 7
      layout:
        type: pattern
  root:
    appenders: [default,rolling-file]

```

---

_[View the full topic](https://discuss.elastic.co/t/kibana7-17-10-log-rotation/342313)._
