On Fri, 2003-09-12 at 09:06, Michael Gargiullo wrote:
> On Thu, 2003-09-11 at 22:22, Bret Hughes wrote:
> > what do folk use to split log files by vhost for webaliser analysis?
> > 
> > Bret
> > 
> I ended up keeping separate log files for each vhost.  It ended up being
> easier to manage in the end.
> -- 
> Michael Gargiullo <[EMAIL PROTECTED]>
> Warp Drive Networks
> 

Hmm.

The apache docs for vhosts advise that with a small number of sites this
is fine.  The issue is evidently using a file descriptor for each of the
logfiles that must be written to so I guess I'm ok for now but I hate to
build a scalability issue into the configuration.

FWIW you can read about this issue at 

http://httpd.apache.org/docs-2.0/vhosts/fd-limits.html

The client currently has about 12 sites we will be vhosing  for but owns
over 72 domain names currently and I can see this growing pretty
quickly. 

Right now I have added %v to the end of the logformat so I can split the
logs with a simple perl script I will test tonight.  I found the script
at:

http://www.webmasterworld.com/forum23/1643.htm

I think for this to work easily I will need to rotate the logs daily
(rather than the logrotate default of weekly) and run the split script
immediately following the nightly rotation on the access_log.1 file. 
That way the script will not have to be modified to track where in the
log it left off the previous run.

The script looks like it would be screaming fast and only chew up
recourses for the minute or so I am estimating it will take to run.

I intend to have the split script run as part of the webalizer cron
script that I will modify to call webalizer on each of the vhost conf
files.

This feels scalable and other than setting up the webalizer_vhost.conf
file when I add a new domain it should run ok (I hope)

OF course none of this is tested yet and I may have to punt after I get
into testing tonight.

Thanks for all replies, and as always additional tips welcome.

Bret 


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to