httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Russ" <catch...@sensebubble.co.uk>
Subject Re: split log files, too many vhosts
Date Wed, 29 May 2002 12:13:09 GMT
Hi

Thanks for that, I'm just looking at the script now, I maybe being a bit
stupid, but how to I tell split-logfile where the access file actually is??

Russ

----- Original Message -----
From: "Chris Wik" <chris@anu.net>
To: <users@httpd.apache.org>
Sent: Wednesday, May 29, 2002 12:09 PM
Subject: Re: split log files, too many vhosts


> there is a script that comes with apache for doing this. it's
> called split-logfile. you need to modify the format of your
> access log to put the virtual host as the first field, e.g.:
> LogFormat " %v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
> \"%{User-Agent}i\"" vaccess
>
> then use customlog to create a vaccess file. you can split the
> result with either split-logfile, egrep, your own solution. i've
> written a perl solution to split the log files, create
> statistics using analog then gzip and archive them.
>
> hth,
> -c
>
>
> On Wednesday, May 29, 2002, at 09:35 AM, Russ wrote:
>
> > Hi
> >
> > Does anyone know of a script that can split access_log files into the
> > different vhosts running on a server. We have over 600 vhosts
> > on the server,
> > and apache will not run perl scripts with each site writing a
> > separate log
> > file, it says cannot spawn child process. If anyone has an idea
> > how I can
> > sort that problem and keep each site logging to individual log
> > files that
> > would be 100% perfect. Otherwise, a script that can spilt the
> > log files up
> > and preferably put them into sub directories for the name of
> > each vhost.
>
>
> --
> Chris Wik
> Unix Systems Admin, ANU Internet Services
> http://www.anu.net/
> mailto:chris@anu.net
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message