You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Joshua Santelli <sa...@yahoo.com> on 2002/11/19 15:26:08 UTC

[users@httpd] Re: logrotate - two access_logs

Thanks!  I ended up with:

CustomLog "|/prod/apache/bin/rotatelogs
/prod/apache/logs/access_log 604800" combined

...and that appears to be working.

> On Mon, 18 Nov 2002, Joshua Santelli wrote:
> >   LogFormat "%h %l %u %t \"%r\" %>s %b 
> \"%{Referer}i\"
> > \"%{User-Agent}i\"" combined
> >   CustomLog /prod/apache/logs/access_log combined
> >   TransferLog "|/prod/apache/bin/rotatelogs
> 
> Please read the docs on TransferLog and CustomLog. 
> You will find that
> they are essentially the same directive, the only 
> difference being that
> CustomLog allows you to specify the format
explictly, 
> while TransferLog
> doesn't.
> 
> So remove the TransferLog directive and replace the 
> CustomLog directive with
> 
> CustomLog "|/prod/apache/bin/rotatelogs" combined
> 
> Joshua.

__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com

---------------------------------------------------------------------
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