1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2024-09-28 19:41:26 +02:00
infrastructure/roles/common/templates/logrotate.conf.j2
Florian Pritz 39071e7a5a common: Add syslog-ng and logrotate
journal logs are nice and all, but they are comparatively large and
(mostly) uncompressed. This way we at can at least maintain logs for a
reasonable time frame to investigate issues even if the journal decided
that it has to clean up "old" logs.

The logrotate config uses an archive directory to rotate logs to for
stricter permissions on old logs to increase data protection (EU GDPR).

Signed-off-by: Florian Pritz <bluewind@xinu.at>
2019-02-28 17:15:22 +01:00

37 lines
614 B
Django/Jinja

# see "man logrotate" for details
# rotate log files weekly
daily
# keep 30 days worth of backlogs
rotate 30
# restrict maximum size of log files
size 200M
# create new (empty) log files after rotating old ones
create
# uncomment this if you want your log files compressed
compress
# Ignore pacman saved files
tabooext + .pacorig .pacnew .pacsave
# Arch packages drop log rotation information into this directory
include /etc/logrotate.d
/var/log/wtmp {
monthly
create 0664 root utmp
minsize 1M
rotate 1
}
/var/log/btmp {
missingok
monthly
create 0600 root utmp
rotate 1
}