Received: by taz.hyperreal.com (8.6.12/8.6.5) id GAA25934; Tue, 19 Dec 1995 06:20:42 -0800 Received: from arachnet.algroup.co.uk by taz.hyperreal.com (8.6.12/8.6.5) with SMTP id GAA25925; Tue, 19 Dec 1995 06:20:38 -0800 Received: from heap.ben.algroup.co.uk by arachnet.algroup.co.uk id aa13614; 19 Dec 95 14:19 GMT Received: from gonzo.ben.algroup.co.uk by heap.ben.algroup.co.uk id aa29367; 19 Dec 95 14:02 GMT Subject: Re: Number of Virtual Servers To: new-httpd@hyperreal.com Date: Tue, 19 Dec 1995 14:02:36 +0000 (GMT) From: Ben Laurie In-Reply-To: from "David Robinson" at Dec 19, 95 12:35:00 pm X-Mailer: ELM [version 2.4 PL24 PGP2] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1620 Message-ID: <9512191402.aa07934@gonzo.ben.algroup.co.uk> Sender: owner-new-httpd@apache.org Precedence: bulk Reply-To: new-httpd@apache.org > > > > This raises a good point. Is the fix for this as simple as changing > > > the log modules to open and close the file before writing? > > > > It is, yes, but I fear the performance hit. For *every* hit on > >the web server you'll then have an open/write/close, rather than just > >a write.. > > I think that if you have large #s of virtual hosts then you > >should use mod_log_config to create one log file and then parse it > >daily or something. > > Absolutely! This is the only way to go. > > _However_, if you change your log-file format, then you need your own > ad hoc log file parser. This is a big dis-incentive for many admins. We could supply a burster which split the log into one per host. > > What we need is a new log file format; CLF 3. Here are my suggestions: > > 1. A new field for the virtual host. "-" if the server has only one host > or if the host is the 'main' host. > The virtual host is _either_ that specified by the directive, > _or_ the value of the Host: header in the request. > > 2. The date be in the ISO format, so that date comparisons can be done by > string comparisons. You mean the one with lots of digits and a Z? > > 3. The fixed length fields should be at the start of a log record, to > aid parsing. > > What to the NCSA folks think about this? > > David. Cheers, Ben. -- Ben Laurie Phone: +44 (181) 994 6435 Freelance Consultant Fax: +44 (181) 994 6472 and Technical Director Email: ben@algroup.co.uk A.L. Digital Ltd, URL: http://www.algroup.co.uk London, England.