From owner-freebsd-isp Wed Feb 11 20:13:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA26385 for freebsd-isp-outgoing; Wed, 11 Feb 1998 20:13:26 -0800 (PST) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from mixcom.mixcom.com (mixcom.mixcom.com [198.137.186.100]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id UAA26372 for ; Wed, 11 Feb 1998 20:13:20 -0800 (PST) (envelope-from mountin.man@mixcom.com) Received: by mixcom.mixcom.com (8.6.12/2.2) id WAA28601; Wed, 11 Feb 1998 22:13:35 -0600 Received: from dial193-32.mixcom.com(207.250.193.32) by mixcom.mixcom.com via smap (V1.3) id sma028580; Wed Feb 11 22:13:10 1998 Message-Id: <3.0.3.32.19980211220728.0072c48c@198.137.186.100> X-Sender: mmttnn@198.137.186.100 X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.3 (32) Date: Wed, 11 Feb 1998 22:07:28 -0600 To: "Mark Segal" , "Kevin Day" , From: "Jeffrey J. Mountin" Subject: Re: Large httpd log files In-Reply-To: <01bd36bc$62f64460$0201010a@mark.club-web.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org At 02:12 AM 2/11/98 -0500, Mark Segal wrote: >Yup it's quite simple... There are two things you must do. > >Firstly, in your virtual host directive in your httpd.conf make sure you >define different logs for every virtual domain. like so. > > >DocumentRoot /usr/home/yourname/public_html/ >ServerName www.yourname.com >ErrorLog logs/yourname-error_log >TransferLog logs/yourname-access_log >RefererLog logs/yourname-referer_log >AgentLog logs/yourname-agent_log > > >Secondly, you must configure analog to use those files instead.. i found the >config files a pain so i just recompile it each time (now a script).. just >change the file locations in the analhead.h Recompile Analog each time? Why? Simpler and faster to run a loop for *log and 'analog +a $logfile' with a simple shell or PERL script. I had 3 versions. One with full hosts on, the second with full hosts off for sites with more hits, and another for full hosts that would do directory stats deeper for the personal sites. A flat file is used for each site to get the values for the site, recipient, type of report, etc. The original post used one big log which could either be parsed or just run Analog for a directory report and give the totals, but personally I'd rather use the virtual host directive. Customers also like when they can have their own error page another reason for using virtual. ErrorDocument 404 /error.html Otherwise the servers plain generic is used and you give the customer that warm, fuzzy feeling. ;) Jeff Mountin - Unix Systems TCP/IP networking mountin.man@mixcom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message