HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Developers' Forum (http://www.howtoforge.com/forums/forumdisplay.php?f=33)
-   -   AWStats log of bandwidth bytes (http://www.howtoforge.com/forums/showthread.php?t=50528)

george_yohng 15th December 2010 07:27

AWStats log of bandwidth bytes
 
Hello,

Default ISPConfig site log configuration includes only a document size, but not the actual download size. I wonder if it makes sense to add this to ISPConfig:

1. Enable Apache mod_logio, if it is present
2. Add %I %O to the end of ISP custom log in Apache's ispconfig.conf
3. Modify AWStats log format template to have %bytesd not for the document size, but for where %O is placed.

Presently - if a Chinese bot connects to the site to download 10MB file and immediately disconnects after downloading 1K, log will still register 10MB size for each request and thus awstats/ispconfig_bandwidth will report incorrect data.

For hosted user accounts this makes sense, because a user may visibly exhaust his bandwidth allowance easily, without actually exhausting anything - by means of these false entries. This happens all the time when somebody uses a download manager to download files.

I first noted this problem when my colleague asked, why our web site ISPConfig bandwidth stats stated 100GB bandwidth, while on a Cisco switch it was showing somewhere around 20MB consumed total traffic.

Thanks,
George.

till 15th December 2010 12:42

I dont see a problem if someone wants to make patches for this if this apache module is available in the default repositories of all supported linux distributions (debian, ubuntu, centos, fedora and suse) and if this setting is implemented to be configurable.

george_yohng 15th December 2010 18:19

Quote:

Originally Posted by till (Post 246714)
I dont see a problem if someone wants to make patches for this if this apache module is available in the default repositories of all supported linux distributions (debian, ubuntu, centos, fedora and suse) and if this setting is implemented to be configurable.

I can certainly do it for my OpenSUSE installation script, and it is available in the default repository of OpenSUSE.


All times are GMT +2. The time now is 22:24.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.