Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the '10.3: A heads-up on Apache log file rotation' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: A heads-up on Apache log file rotation
Authored by: sn3ak on Dec 15, '03 09:55:25PM
It appears, (At least on my 10.3 Server) that /etc/daily includes the following:
if [ -d /var/log/httpd ]; then
    echo ""
    echo -n "Cleaning web server log files:"
    cd /var/log/httpd && \
       find . -type f -name '*_log*' -mtime +7 -exec rm -f -- {} \; >/dev/null 2>&1;
Which would delete any log files over 7 days old, So what you may want to do is put a comment "#" in front of all those lines, and that should allow it to correctly save log files up to .4.gz (see /etc/periodic/weekly to change this if desired)

[ Reply to This | # ]