Slowfox
New Member
Warum werden meine Domain-Logfiles nach 9 Tagen gelöscht? Ich finde die Schraube nicht, dies umzustellen.
Ich habe einen Strato Server openSUSE 10.2 mit SA24. Mein Problem: die Logfiles der Level 3-Domains unter /usr/local/sa24/logfiles/domain werden nach neun Tagen gelöscht, ich möchte anderthalb Monate haben für die monatliche Auswertung.
Vermutlich logrotate, ich finde aber nicht den wunden Punkt.
logrotate.conf ist recht spartanisch, rotate habe ich von ursprünglich 4 auf 60 erhöht - ohne Effekt
etc/logrotate.d/aus apache2:
Da hatte ich versuchsweise Size erhöht
und noch: /var/lib/logrotate.status:
/usr/sbin/logrotate -d /etc/logrotate.conf 2>&1 | tee $TMPF
(Ausschnitte):
Da erkenne ich keinen Schuldigen?
In der sa24_vhosts.conf steht der übliche Eintrag, wie ich ihn hier auch bei anderen gesehen habe:
crontab ist ebenfalls m.E. standard Auslieferung:
Kann mir jemand damit helfen?
Ich habe einen Strato Server openSUSE 10.2 mit SA24. Mein Problem: die Logfiles der Level 3-Domains unter /usr/local/sa24/logfiles/domain werden nach neun Tagen gelöscht, ich möchte anderthalb Monate haben für die monatliche Auswertung.
Vermutlich logrotate, ich finde aber nicht den wunden Punkt.
logrotate.conf ist recht spartanisch, rotate habe ich von ursprünglich 4 auf 60 erhöht - ohne Effekt
Code:
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs - wenn taeglich logrotate dann Tage
rotate 60
# create new (empty) log files after rotating old ones
create
# uncomment this if you want your log files compressed
#compress
# uncomment these to switch compression to use gzip or another
# compression scheme
compresscmd /usr/bin/bzip2
uncompresscmd /usr/bin/bunzip2
# RPM packages drop log rotation information into this directory
include /etc/logrotate.d
Code:
/etc/logrotate.d # ls
apache2 fetchmail mysql ntp scpm syslog-ng wtmp zypper.lr
exim mailman net-snmp rsync syslog vsftpd xinetd
etc/logrotate.d/aus apache2:
Code:
/var/log/apache2/access_log {
compress
dateext
maxage 365
rotate 99
size=+12096k
notifempty
missingok
create 644 root root
postrotate
/etc/init.d/apache2 reload
endscript
}
Da hatte ich versuchsweise Size erhöht
und noch: /var/lib/logrotate.status:
Code:
logrotate state -- version 2
"/var/log/net-snmpd.log" 2007-2-9
"/var/log/ntp" 2007-2-9
"/var/log/rsyncd.log" 2007-2-9
"/var/log/scpm" 2007-2-9
"/var/log/warn" 2007-2-9
"/var/log/messages" 2008-5-18
"/var/log/allmessages" 2007-2-9
"/var/log/localmessages" 2007-2-9
"/var/log/firewall" 2007-2-9
"/var/log/mail" 2008-6-1
"/var/log/mail.info" 2008-6-1
"/var/log/mail.warn" 2007-2-9
"/var/log/mail.err" 2007-2-9
"/var/log/news/news.crit" 2007-2-9
"/var/log/news/news.err" 2007-2-9
"/var/log/news/news.notice" 2007-2-9
"/var/log/acpid" 2007-2-9
"/var/log/NetworkManager" 2007-2-9
"/var/log/wtmp" 2007-2-9
"/var/log/xinetd.log" 2007-2-9
"/var/log/YaST2/zypper.log" 2008-6-1
"/var/log/apache2/access_log" 2008-6-3
"/var/log/apache2/error_log" 2008-5-31
"/var/log/apache2/suexec.log" 2008-6-1
"/var/log/apache2/ssl_request_log" 2008-4-13
"/var/log/apache2/ssl_engine_log" 2008-4-13
"/var/log/exim/main.log" 2008-6-1
"/var/log/exim/reject.log" 2008-6-1
"/var/log/exim/panic.log" 2008-4-13
"/var/log/fetchmail" 2008-4-13
"/var/lib/mailman/logs/fromusenet" 2008-4-13
"/var/lib/mailman/logs/digest" 2008-4-13
"/var/lib/mailman/logs/smtp-failure" 2008-4-13
"/var/lib/mailman/logs/bounce" 2008-4-13
"/var/lib/mailman/logs/locks" 2008-4-13
"/var/lib/mailman/logs/post" 2008-4-13
"/var/lib/mailman/logs/smtp" 2008-4-13
"/var/lib/mailman/logs/qrunner" 2008-4-13
"/var/lib/mailman/logs/vette" 2008-4-13
"/var/lib/mailman/logs/error" 2008-4-13
"/var/lib/mailman/logs/mischief" 2008-4-13
"/var/lib/mailman/logs/subscribe" 2008-4-13
"/var/lib/mysql/mysqld.log" 2008-6-5
"/var/log/vsftpd.log" 2008-4-13
/usr/sbin/logrotate -d /etc/logrotate.conf 2>&1 | tee $TMPF
(Ausschnitte):
Code:
including /etc/logrotate.d
reading config file apache2
reading config info for /var/log/apache2/access_log
reading config info for /var/log/apache2/error_log
reading config info for /var/log/apache2/suexec.log
reading config info for /var/log/apache2/ssl_request_log
reading config info for /var/log/apache2/ssl_engine_log
reading config file exim
reading config info for /var/log/exim/main.log
reading config info for /var/log/exim/reject.log
reading config info for /var/log/exim/panic.log
reading config file fetchmail
reading config info for /var/log/fetchmail
reading config file mailman
reading config info for /var/lib/mailman/logs/fromusenet /var/lib/mailman/logs/digest /var/lib/mailman/logs/smtp-failure
reading config info for /var/lib/mailman/logs/bounce /var/lib/mailman/logs/locks /var/lib/mailman/logs/post /var/lib/mailman/logs/smtp /var/lib/mailman/logs/qrunner /var/lib/mailman/logs/vette /var/lib/mailman/logs/error /var/lib/mailman/logs/mischief /var/lib/mailman/logs/subscribe
reading config file mysql
reading config info for /var/lib/mysql/mysqld.log
reading config file net-snmp
reading config info for /var/log/net-snmpd.log
reading config file ntp
reading config info for /var/log/ntp
reading config file rsync
reading config info for /var/log/rsyncd.log
reading config file scpm
reading config info for /var/log/scpm
reading config file syslog
reading config info for /var/log/warn /var/log/messages /var/log/allmessages /var/log/localmessages /var/log/firewall
reading config info for /var/log/mail /var/log/mail.info /var/log/mail.warn /var/log/mail.err
reading config info for /var/log/news/news.crit /var/log/news/news.err /var/log/news/news.notice
reading config file syslog-ng
reading config info for /var/log/acpid /var/log/NetworkManager
reading config file vsftpd
reading config info for /var/log/vsftpd.log
reading config file wtmp
reading config info for /var/log/wtmp
reading config file xinetd
reading config info for /var/log/xinetd.log
reading config file zypper.lr
reading config info for /var/log/YaST2/zypper.log
Handling 24 logs
...
rotating pattern: /var/log/apache2/access_log weekly (99 rotations)
empty log files are not rotated, only log files >= 4194304 bytes are rotated, old logs are removed
considering log /var/log/apache2/access_log
log does not need rotating
not running postrotate script, since no logs were rotated
...
rotating pattern: /var/log/apache2/error_log weekly (99 rotations) ...
rotating pattern: /var/log/apache2/suexec.log weekly (99 rotations) ...
rotating pattern: /var/log/apache2/ssl_request_log weekly (99 rotations) ...
rotating pattern: /var/log/apache2/ssl_engine_log weekly (99 rotations) ...
rotating pattern: /var/log/exim/main.log weekly (99 rotations) ...
rotating pattern: /var/log/exim/reject.log weekly (99 rotations) ...
rotating pattern: /var/log/exim/panic.log weekly (99 rotations) ...
rotating pattern: /var/log/fetchmail weekly (99 rotations) ...
rotating pattern: /var/lib/mailman/logs/fromusenet /var/lib/mailman/logs/digest ...
rotating pattern: /var/lib/mailman/logs/bounce /var/lib/mailman/logs/locks ...
rotating pattern: /var/lib/mysql/mysqld.log after 1 days (3 rotations) ...
rotating pattern: /var/log/net-snmpd.log weekly (99 rotations) ...
rotating pattern: /var/log/ntp weekly (99 rotations) ...
rotating pattern: /var/log/rsyncd.log weekly (99 rotations) ...
rotating pattern: /var/log/scpm weekly (1 rotations) ...
rotating pattern: /var/log/warn /var/log/messages ...
rotating pattern: /var/log/mail /var/log/mail.info ...
rotating pattern: /var/log/news/news.crit /var/log/news/news.err ...
rotating pattern: /var/log/acpid /var/log/NetworkManager weekly (99 rotations) ...
rotating pattern: /var/log/vsftpd.log weekly (99 rotations) ...
rotating pattern: /var/log/wtmp weekly (99 rotations) ...
rotating pattern: /var/log/xinetd.log weekly (99 rotations) ...
rotating pattern: /var/log/YaST2/zypper.log weekly (99 rotations) ...
Da erkenne ich keinen Schuldigen?
In der sa24_vhosts.conf steht der übliche Eintrag, wie ich ihn hier auch bei anderen gesehen habe:
Code:
CustomLog "|/usr/local/sa24/cronolog/cronolog --symlink=/usr/local/sa24/logfiles/domain.de/access_log --prev-symlink=/usr/local/sa24/logfiles/domain.de/current_access_log /usr/local/sa24/logfiles/domain.de/%Y/%m/%d/access_log" combined
crontab ist ebenfalls m.E. standard Auslieferung:
Code:
40 23 * * * /usr/local/sa24/etc/statistik/report.sh >>/dev/null 2>&1
0 3 * * * /usr/local/sa24/sa24d3/sa24d3 --traffic >>/dev/null 2>&1
*/5 * * * * /usr/local/sa24/sa24d3/sa24d3 --server-stats >>/dev/null 2>&1
5 3 * * * /usr/local/sa24/updates/sa24-updates-scan >>/dev/null 2>&1
0 3 * * 0 /usr/bin/reoback.pl /etc/reoback//settings.conf
Kann mir jemand damit helfen?
Last edited by a moderator: