Date: Sat, 29 Mar 2003 10:34:11 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: freebsd-questions@freebsd.org Subject: Re: Bandwidth Logging Message-ID: <20030329103411.GA30727@happy-idiot-talk.infracaninophi> In-Reply-To: <20BA67EE-61C6-11D7-A3D2-000393BF3DE2@mqtweb.com> References: <20BA67EE-61C6-11D7-A3D2-000393BF3DE2@mqtweb.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] 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 > emptyhanded... > > I am running a webserver with several name-based virtual hosts. I would > like to log, but not limit, the outgoing bandwidth used by each virtual > host. Can someone point me to a tool that could help me? I can find > many methods of bandwidth throttling - but nothing on logging, so I am > convinced I'm missing something obvious :-) > > 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 from apache. However, you can simply put TransferLog, ErrorLog and/or CustomLog directives into each of your <VirtualHost></VirtualHost> 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 -- 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 [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+hXajdtESqEQa7a0RAuULAJ9+VMGG1d+NwdDz+ss4h3OFvrhBNwCffETN oZXOhvgXLk2lbNM17UXiec4= =5hrj -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030329103411.GA30727>
