86 lines
1.7 KiB
YAML
86 lines
1.7 KiB
YAML
---
|
|
# List of global options. If this is empty the default options of the
|
|
# distribution are used.
|
|
logrotate_options: []
|
|
|
|
# Path to the include files
|
|
logrotate_include_dir: /etc/logrotate.d
|
|
|
|
# package name to install logrotate.
|
|
logrotate_package: logrotate
|
|
|
|
# Enable hourly rotation with cron.
|
|
logrotate_use_hourly_rotation: false
|
|
|
|
# logroate for wtmp
|
|
logrotate_wtmp:
|
|
logs:
|
|
- /var/log/wtmp
|
|
options:
|
|
- missingok
|
|
- monthly
|
|
- create 0664 root utmp
|
|
- rotate 1
|
|
|
|
# logroate for btmp
|
|
logrotate_btmp:
|
|
logs:
|
|
- /var/log/btmp
|
|
options:
|
|
- missingok
|
|
- monthly
|
|
- create 0660 root utmp
|
|
- rotate 1
|
|
|
|
# More log files can be added that will log rotate.
|
|
# An example of multiple log rotate applications with available settings:
|
|
# logrotate_applications:
|
|
# - name: name-your-log-rotate-application
|
|
# logs:
|
|
# - /var/log/apt/term.log
|
|
# - /var/log/apt/history.log
|
|
# options:
|
|
# - rotate 12
|
|
# - monthly
|
|
# - missingok
|
|
# - notifempty
|
|
# - compress
|
|
logrotate_applications:
|
|
- name: nextcloud-snap-apache-php_errors
|
|
logs:
|
|
- /var/snap/nextcloud/current/apache/logs/*.log
|
|
options:
|
|
- daily
|
|
- compress
|
|
- rotate 6
|
|
- missingok
|
|
- copytruncate
|
|
- delaycompress
|
|
|
|
- name: nextcloud-snap-apache-error_log"
|
|
logs:
|
|
- /var/snap/nextcloud/current/apache/logs/error_log
|
|
options:
|
|
- daily
|
|
- compress
|
|
- rotate 6
|
|
- missingok
|
|
- copytruncate
|
|
- delaycompress
|
|
|
|
- name: custom
|
|
logs:
|
|
- /var/log/custom/*_log
|
|
options:
|
|
- daily
|
|
- compress
|
|
- rotate 6
|
|
|
|
- name: dpkg
|
|
logs:
|
|
- /var/log/dpkg.log
|
|
options:
|
|
- daily
|
|
- compress
|
|
- rotate 6
|