it typically won't be in the /etc/logrotate.conf
mine is in the /etc/logrotate.d/syslog file and looks like this. You may actually have a specific file under the /etc/logrotate.d/ directory depending on the MTA you use. I'd check that first. But since its not rotating at all, I have my doubts there is one. You should be able to add it to the file of syslog. Keep a backup of the pre-modified version though just in case (always good practice in case you have to go back).
--------------------------
# WARNING : don't use * wildcard as extension
# (glob in logrotate will try to rotate all files instead of
# only the basenames of the logs, i.e. it will rotate
# already rotated files and recompress them, taking
# exponential time...)
/var/log/auth.log /var/log/syslog /var/log/user.log /var/log/secure /var/log/messages /var/log/boot.log /var/log/mail/errors /var/log/mail/info /var/log/mail/warnings /var/log/cron/errors /var/log/cron/info /var/log/cron/warnings /var/log/kernel/errors /var/log/kernel/info /var/log/kernel/warnings /var/log/lpr/errors /var/log/lpr/info /var/log/lpr/warnings /var/log/news/news.err /var/log/news/news.notice /var/log/news/news.crit /var/log/daemons/errors /var/log/daemons/info /var/log/daemons/warnings /var/log/explanations {
sharedscripts
rotate 5
weekly
postrotate
[ -f /var/run/syslog-ng.pid ] && kill -HUP `cat /var/run/syslog-ng.pid` || true
[ -f /var/run/syslogd.pid ] && kill -HUP `cat /var/run/syslogd.pid` || true
endscript
}
--------------------------
Main Topics
Browse All Topics





by: rindiPosted on 2007-02-16 at 11:56:39ID: 18551392
In my point of view the easiest way to setup how logs are run is to use webmin. With webmin you have a utility with which you can do a lot of administrative tasks for linux easily.
http://webmin.com
Also check with portage (emerge), probably webmin is included in the gentoo packages so you don't need to download it from the webmin site.