Apache Logrotate Question
First, should I pipe the logfile through logrotate, like this (in sites-enabled)
CustomLog "|bin/rotatelogs /srv/www/realfreemarket.org/logs/access.log 86400
_Or, should I explicitly call logrotate as a cron job?
Also, I'd like to keep my logs in the form access.YYYY.MM.DD.log, and keep them for at least a month or two. How do I do that?_
2 Replies
CustomLog "|/usr/sbin/rotatelogs -l /srv/www/realfreemarket.org/logs/access
.%Y.%m.%d.log 86400" combined
ubuntu puts "rotatelogs" in "/usr/sbin" instead of "/bin".