From owner-freebsd-questions@FreeBSD.ORG Sat Mar 29 02:34:23 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E83BA37B401 for ; Sat, 29 Mar 2003 02:34:23 -0800 (PST) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E85043FAF for ; Sat, 29 Mar 2003 02:34:22 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) h2TAYBpQ030852 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 29 Mar 2003 10:34:11 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)h2TAYBB0030847 for freebsd-questions@freebsd.org; Sat, 29 Mar 2003 10:34:11 GMT Date: Sat, 29 Mar 2003 10:34:11 +0000 From: Matthew Seaman To: freebsd-questions@freebsd.org Message-ID: <20030329103411.GA30727@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , freebsd-questions@freebsd.org References: <20BA67EE-61C6-11D7-A3D2-000393BF3DE2@mqtweb.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6c2NcOVqGQ03X4Wi" Content-Disposition: inline In-Reply-To: <20BA67EE-61C6-11D7-A3D2-000393BF3DE2@mqtweb.com> User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-38.8 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT version=2.50 X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Subject: Re: Bandwidth Logging X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Mar 2003 10:34:27 -0000 --6c2NcOVqGQ03X4Wi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Mar 29, 2003 at 04:09:21AM -0500, Paul Lathrop wrote: > Forgive me if this is the wrong forum, but Google has left me=20 > emptyhanded... >=20 > I am running a webserver with several name-based virtual hosts. I would= =20 > like to log, but not limit, the outgoing bandwidth used by each virtual= =20 > host. Can someone point me to a tool that could help me? I can find=20 > many methods of bandwidth throttling - but nothing on logging, so I am=20 > convinced I'm missing something obvious :-) >=20 > Anyway, thanks ahead of time. Hmmm... I don't know of any way of generating a number saying that at time X virtual host www.foo.com was transmitting Y bits/s directly =66rom apache. However, you can simply put TransferLog, ErrorLog and/or CustomLog directives into each of your sections in your httpd.conf to generate virtual host specific log files. Or you can define a LogFormat that includes the %v directive (see http://httpd.apache.org/docs/mod/mod_log_config.html), to include the ServerName into the log data. Then just use a standard WWW server logfile analysis tool like analog (http://www.analog.cx/, ports: www/analog) to generate graphs of traffic vs. time. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --6c2NcOVqGQ03X4Wi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+hXajdtESqEQa7a0RAuULAJ9+VMGG1d+NwdDz+ss4h3OFvrhBNwCffETN oZXOhvgXLk2lbNM17UXiec4= =5hrj -----END PGP SIGNATURE----- --6c2NcOVqGQ03X4Wi--