mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
26 lines
498 B
Plaintext
26 lines
498 B
Plaintext
# rotate log files daily
|
|
daily
|
|
# keep 5 days worth
|
|
rotate 5
|
|
# create new (empty) log files after rotating old ones
|
|
create
|
|
# use date as a suffix of the rotated file
|
|
dateext
|
|
# max size 50M
|
|
size 50M
|
|
# RPM packages drop log rotation information into this directory
|
|
include /etc/logrotate.d
|
|
# no packages own wtmp and btmp -- we'll rotate them here
|
|
/var/log/wtmp {
|
|
monthly
|
|
create 0664 root utmp
|
|
rotate 1
|
|
}
|
|
/var/log/btmp {
|
|
missingok
|
|
monthly
|
|
create 0600 root utmp
|
|
rotate 1
|
|
}
|
|
|