httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacob Coby" <jc...@listingbook.com>
Subject Re: [users@httpd] how to rotate log files
Date Wed, 22 Jan 2003 17:11:33 GMT
> The log file will be in /var/log/httpd/crto-dev/access_log
> because the access_log file is geting to big, i want to use following
> stategy to do deal with it.
> first week: all log info are written to access_log
> second week: move access_log to access_log1,
> third weed: move access_log1 to access+log2. move access_log toaccess_log1
> and so on...
>
> how can i acheive this gaol, do have to use crontab?

This is exactly how logrotate works.  You can also have it compress them or
do any other thing you want it to.  Redhat 7.3 already has the crontab setup
for logrotate, you just need to add a httpd entry in /etc/logrotate.d

-Jacob


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message