[rrd-users] Web log graphing

Geoff Garside geoff.garside at openhosting.co.uk
Tue Jun 19 16:17:34 CEST 2007

You should be able to get the bytes of each request from the access log, it
should be the 7th field in the standard combined log format (%b)

"%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""

though the %r field will require a bit more care as you can't just split on
spaces as the %r will have something like "GET /index.html HTTP/1.0" in it.

I don't know any application which will currently take this information and
add it to RRD. You might have to add up the bytes from X minute blocks or
whatever to get reasonably sensible results though.

Geoff Garside
Open Hosting Ltd

> -----Original Message-----
> From: rrd-users-bounces at lists.oetiker.ch [mailto:rrd-users-
> bounces at lists.oetiker.ch] On Behalf Of Richard Pyne
> Sent: 19 June 2007 14:56
> To: rrd-users at lists.oetiker.ch
> Subject: Re: [rrd-users] Web log graphing
> On 19 Jun 2007 at 8:38, Sergiusz Pawlowicz wrote:
> > On 6/19/07, Richard Pyne <rpyne at kinfolk.org> wrote:
> > > Before I re-invent the wheel, does anyone have or know of scripts to
> > > graph the total bytes transfered using the data from an Apache web
> log?
> > >
> > > I know I can handle the rrdtool part, but I am not sure how to collect
> > > and total the data from the web log.
> >
> > check collectd: http://collectd.org/
> >
> > it is reading apache server-status each ten seconds,
> > so you will have very nice graphs.
> This would be nice, but I need it to use the access_log file so I can
> track virtual domains separately.
> Thanks for the suggestion.
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

More information about the rrd-users mailing list