Mobile app version of vmapp.org
Login or Join
Gail5422790

: Appending Apache log files with the date 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

@Gail5422790

Posted in: #ApacheLogFiles #Logging

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Gail5422790

1 Comments

Sorted by latest first Latest Oldest Best

 

@Karen161

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

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

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme