ich bin mal wieder zu bl�d und brauche Eure Hilfe ;O)
Ich habe hier einen Proxy laufen und h�tte gerne, dass f�r jeden Tag ein eigenes Logfile angelegt wird und die vergangenen 14 Tage aufgehoben werden.
Ich habe die Manpage zu logrotate gelesen und diverse Einstellungen ausprobiert, aber es will einfach nicht funktionieren...
Kann mir jemand einen Tip geben, wie man das realisiert?
Gr��e Mathias
Hier die zwei Konfigs bei mir:
hdb01:/etc# cat logrotate.conf # see "man logrotate" for details # rotate log files weekly weekly
# keep 4 weeks worth of backlogs rotate 4
# create new (empty) log files after rotating old ones create
# uncomment this if you want your log files compressed #compress
# packages drop log rotation information into this directory include /etc/logrotate.d
# no packages own wtmp, or btmp -- we'll rotate them here
/var/log/wtmp {
monthly
create 0664 root utmp
rotate 1
}/var/log/btmp {
missingok
monthly
create 0664 root utmp
rotate 1
}# system-specific logs may be configured here
hdb01:/etc# cat logrotate.d/squid
#
# Logrotate fragment for squid.
#
/var/log/squid/*.log {
daily
compress
delaycompress
rotate 2
missingok
nocreate
sharedscripts
prerotate
test ! -x /usr/sbin/sarg-maint || /usr/sbin/sarg-maint
endscript
postrotate
test ! -e /var/run/squid.pid || /usr/sbin/squid -k rotate
endscript
}--
Haeufig gestellte Fragen und Antworten (FAQ): http://www.de.debian.org/debian-user-german-FAQ/
Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED] mit dem Subject "unsubscribe". Probleme? Mail an [EMAIL PROTECTED] (engl)

