Mar 6, 2008 #1 akgta Programmer Jul 18, 2007 42 CA Is there a way we can generate access/error log files on a daily basis in apache? Thanks in advance.
Mar 6, 2008 #2 elgrandeperro Technical User Dec 8, 2005 1,049 US There are 2 ways. The easiest is to write a script that runs through cron that rotates the logs for you and restarts apache every day. The second is to use cronolog, which works just like the other logs with piped output but knows to the file given a format or config. eugene Upvote 0 Downvote
There are 2 ways. The easiest is to write a script that runs through cron that rotates the logs for you and restarts apache every day. The second is to use cronolog, which works just like the other logs with piped output but knows to the file given a format or config. eugene
Mar 6, 2008 Thread starter #3 akgta Programmer Jul 18, 2007 42 CA can you explain a little more in details please thanks Upvote 0 Downvote
Mar 6, 2008 #4 elgrandeperro Technical User Dec 8, 2005 1,049 US Did you actually read the apache docs on this subject? http://httpd.apache.org/docs/2.2/logs.html I've done both, I prefer cronolog because it is a simple pipe and will switch even if the cron job failed to run (like you were down over midnight. Upvote 0 Downvote
Did you actually read the apache docs on this subject? http://httpd.apache.org/docs/2.2/logs.html I've done both, I prefer cronolog because it is a simple pipe and will switch even if the cron job failed to run (like you were down over midnight.