I cannot figure out where /var/log/auth.log is rotated.
I found the file /var/log/auth.log.2013-09-16 on my system, which contains log entries previously found in /var/log/auth.log. Where does that file come from?
I added the -d -D '%Y-%m-%d' options to the savelog call in /etc/cron.daily/sysklog and the options dateext and dateformat .%Y-%m-%d to /etc/logrotate.conf, but I do not know why this should affect how auth.log is rotated.
Places that I have investigated:
$ grep auth /etc/logrotate.d/*produces no match$ grep auth /etc/logrotate.confproduces no match/etc/cron.daily/syskloghas the following to say about rotation:for LOG in $(syslogd-listfiles) do if [ -s $LOG ]; then savelog -g adm -m 640 -u ${USER} -c 7 -d -D '%Y-%m-%d' $LOG \ > /dev/null fi donebut
$ syslogd-listfilesonly lists/var/log/syslogas candidate for rotation.Other calls to
savelogin/etcand its subdirectories rotate history files in registered CVS directories,/var/log/bootandaptitude.pkgstates.$ crontab -llists some entries for scripts in/opt/psa/libexec/modules/watchdog/cp/(I assume they come from Plesk Panels). However, I don't think they are responsible, because the files in question used to be named with a numeric extension until I added the-d -D '%Y-%m-%d'options to thesavelogcall in/etc/cron.daily/sysklogand the optionsdateextanddateformat .%Y-%m-%dto/etc/logrotate.conf.