bonjour,
Ayant configuré logrotate afin d'avoir une rotation de log par jour pour squid, cette rotation
ne s'effectue pas alors que tout semble être correct.
/etc/logrotate.d/squid :
Code
/squid-logs/access.log {
daily
create 0644 squid squid
rotate 14
missingok
olddir /squid-logs
dateext
dateformat .%d-%m-%Y
nocompress
copytruncate
}
/etc/logrotate.conf :
Code
# 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
# RPM packages drop log rotation information into this directory
include /etc/logrotate.d
# no packages own wtmp -- we'll rotate them here
/var/log/wtmp {
monthly
create 0664 root utmp
rotate 1
}
# system-specific logs may be also be configured here.
/etc/cron.daily/logrotate :
Code
#!/bin/sh
/usr/sbin/logrotate /etc/logrotate.conf
EXITVALUE=$?
if [ $EXITVALUE != 0 ]; then
/usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
fi
exit 0
Merci à ceux qui m'aideront.