httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacob Coby" <>
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


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message