Re: [rrd-users] Web log graphing

This is a discussion on Re: [rrd-users] Web log graphing within the RRD Users forums, part of the Networking and Network Related category; there are several ways to do it, * with server-status(maybe it need to be patched) * tail the logfile(access_log) * ...


Go Back   Usenet Forums > Networking and Network Related > RRD Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-19-2007
Erik de Mare
 
Posts: n/a
Default Re: [rrd-users] Web log graphing

there are several ways to do it,
* with server-status(maybe it need to be patched)
* tail the logfile(access_log)
* use an other module for apache mod_watch(also shows traffic by virtual
host).
* or add an firewall rule to count the traffic.

Erik

Geoff Garside schreef:
>> -----Original Message-----
>> From: rrd-users-bounces@lists.oetiker.ch [mailto:rrd-users-
>> bounces@lists.oetiker.ch] On Behalf Of Simon Hobson
>> Sent: 19 June 2007 16:05
>> To: rrd-users@lists.oetiker.ch
>> Subject: Re: [rrd-users] Web log graphing
>>
>> Geoff Garside wrote:
>>> 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.
>>
>> Does Apache have the ability to write two logs, the standard one,
>> plus a second with just the information (domain & bytes) required for
>> graphing ? That would save effort parsing the log file that may have
>> awkward spaces and stuff in filenames.
>>

>
> Certainly, you can specify your own log format using something like
>
> LogFormat "%V %b" parseable
> CustomLog /var/log/httpd/domain.com-parseable_log parseable
>
> You can add the new custom log type alongside the existing combined log
> format.
>
> That should give you a log with
>
> domain.com 324
>
> or something of that ilk on each line as well as a timestamp prefix.
>
> Regards,
> Geoff Garside
>
> OpenHosting Ltd
>
> _______________________________________________
> rrd-users mailing list
> rrd-users@lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users


_______________________________________________
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:30 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0