Kibana7.17.10 log rotation

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
#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]