1

I used to use cronolog to manage my Apache log files. However, after getting back into website hosting, I noticed it is no longer being updated.

I want to append the date of the log file, so I have a new file each day. (i.e., apache-error_2014-05-02.log) instead of the typical error.log1, error.log2, error.log3 that Apache does.

How can I do this with Apache?

2

Apache supports rotating logfiles. Check the manual here, specifically the following example:

CustomLog "|bin/rotatelogs -l /var/logs/logfile.%Y.%m.%d 86400" common

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.