Re: Syslogrotation beißt Logrotation
Hallo Tim,
die Konfigurationsdateien unter /etc/logrotate.d haben sich seit geraumer Zeit nicht geändert. Das grabben nach "daily" trifft nur für folgende Dateien zu:
/etc/logrotate.d/lvm-common
/etc/logrotate.d/system
die darin enthaltene Konfiguration passt nicht:
/var/log/lvm {
daily
rotate 1
missingok
create 0640 root adm
}
und
/var/log/rsyncd.log {
daily
rotate 7
postrotate
/usr/local/bin/rsynckill
endscript
}
Folgend die Logrotation des Apachelogs, welches täglich rotiert:
noolddir
nocreate
"/var/log/apache/error.log" {
missingok
monthly
rotate 4
postrotate
/etc/init.d/apache reload > /dev/null
endscript
}
"/var/log/apache/access_log" {
missingok
monthly
rotate 4
postrotate
/etc/init.d/apache reload > /dev/null
endscript
}
"/var/log/apache/ssl_engine_log" {
missingok
monthly
rotate 4
postrotate
/etc/init.d/apache reload > /dev/null
endscript
}
"/var/www/*/logs/access_log" {
noolddir
nocreate
missingok
rotate 3
monthly
}
"/var/www/*/*/logs/access_log" {
noolddir
nocreate
missingok
rotate 3
monthly
}
olddir /var/log/old
create
_______________________________________________________________________
Viren-Scan für Ihren PC! Jetzt für jeden. Sofort, online und kostenlos.
Gleich testen! http://www.pc-sicherheit.web.de/freescan/?mc=022222
Reply to: