Mar 6, 2008 #1 akgta Programmer Joined Jul 18, 2007 Messages 42 Location 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 Joined Dec 8, 2005 Messages 1,049 Location 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 Joined Jul 18, 2007 Messages 42 Location CA can you explain a little more in details please thanks Upvote 0 Downvote
Mar 6, 2008 #4 elgrandeperro Technical User Joined Dec 8, 2005 Messages 1,049 Location 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.