SiteMinder / Webhosting
The Computer Merchant, Ltd
US-MA-North Quincy

Justtechjobs.com Post A Job | Post A Resume

Using Webalizer to analyze Apache logs
Introduction
Every ISP needs a log file analysis program. One of the best is the Webalizer, an open source product originally written in Perl and rewritten in C soon thereafter. It can parse both Common Log Format and Combined Log Format files at a blistering pace. One benchmark states that On a 200Mhz pentium machine, over 10,000 records can be processed in one second, with a 40 Megabyte file taking roughly 15 seconds (over 150,000 records). When one of my consulting clients approached me looking for an open source log file analysis program to replace their proprietary one, Webalizer was my top recommendation.
Getting Started:
Installing webalizer can be a daunting task because one quickly runs into dependency problems. Webalizer requires the gd graphics library which in turn relies upon the jpeg, png, and zlib compression libraries. Further complicating the installation is that most of these libraries eschew the standard ./configure, make, make install syntax that is typical for most open source installations. I will, therefore, take a few moments to sketch out the installation process.
It is recommended that every one of these libraries be downloaded and extracted into a common directory from which each can be built and installed. It is particularly important for the png and zlib libraries to be extracted in the same top level directory prior to building and installing them. The order of installation is important.
First, download the jpeg library from http://www.ijg.org/, unzip and untar the files and cd into the jpeg-6b directory.
./configure
make
make install
cd ..
Second, download zlib from http://www.info-zip.org/pub/infozip/zlib/.
gunzip zlib*.tar.gz
tar -xvpf zlib-1.1.3.tar
mv zlib-1.1.3 zlib
cd zlib
./configure
make
make test
make install
cd ..
Third, download libpng from http://www.libpng.org/.
gunzip libpng*.tar.gz
tar -xvpf libpng-1.0.10.tar
mv libpng-1.0.10 libpng
cd libpng
The png library has a number of makefiles in the scripts directory that are specific to different architectures. In my case:
cp scripts/makefile.linux makefile
make
make test
make install
cd ..
You may, optionally, choose to download and install freetype fonts. It is often difficult, however, to connect to the main sourceforge site, but a list of mirrors can be found at: http://www.freetype.org/download.html.
[ Next Page ]


Comments:
Large file searchingsuman das10/19/05 03:56
How to search large file(1 GB) in phpsuman das10/17/05 04:28
How to install & configure webalizerKoko09/19/05 10:11
hellpzhihong jian05/08/05 20:19
Webalizer for WIN32 or WIN NTRyan04/04/05 19:55
can webalizer used for secure site?vaidehi rane01/04/05 00:44
Ä«/µå/µ¹·Á¸·±â·Î/¸Á°¡Áö½ÅºÐ/²À º¸¼¼¿ä!ÀÌÇýÁø12/06/04 10:30
½Å.¿ë.ºÒ.·®.ÀÚ/´çÀÏ500/´ë.Ãâ.ºñ.¹ýÀÌÈñÁø12/04/04 11:41
Ä«,µå,¿¬,ü,ÀÚ/¿¹.Á¤.ÀÚ ´ë,Ãâ 100-1000¸¸¿øÀÌ´ÙÇö12/04/04 03:10
´ë'Ãâ'°Å'Àý'½Ã'100%µÇ'°Ô'ÇÏ'´Â'¹æ'¹ýÇѰæ¿í12/03/04 19:50
Ä«/µå/µ¹·Á¸·±â·Î/¸Á°¡Áö½ÅºÐ/²À º¸¼¼¿ä!ÀÌÇýÁø11/27/04 11:50
½Å.¿ë.ºÒ.·®.ÀÚ/´çÀÏ500/´ë.Ãâ.ºñ.¹ýÀÌÈñÁø11/26/04 08:50
½Å.¿ë.ºÒ.·®/Ä«.µå.¿¬.ü/´ë.Ãâ/È¥ÀÚ/ÇØ.°áÇÏ´Â/¹æ.¹ý±èÇö¼­11/23/04 20:00
Ä«/µå/µ¹·Á¸·±â·Î/¸Á°¡Áö½ÅºÐ/²À º¸¼¼¿ä!ÀÌÁ¤¿¬11/17/04 23:52
Ä«.µå °ª.¿ø.±Ý.¸¸.°±.´Â.¹æ.¹ý(°­.Ãß)Áö¿µÈñ11/14/04 10:35
RE: can not open libpng.so.3hüseyin ozan tok04/03/03 08:36
RE: Problem compiling --wtih-dns, any hint ?Anthony Herana10/20/02 02:58
Enhanced Webalizer - for mass virtual hostingEl Muerte08/01/02 11:46
RE: Web log analyzerjoe06/24/02 11:52
RE: Search terms, sorting logs, and site groupsjoe06/24/02 11:49
RE: Webalizer cron.daily ProblemAntoine Megens06/18/02 09:26
webalizerjulian06/06/02 13:28
Webalizer and counterPatoch06/03/02 12:24
RE: inaccurate search string listsMirzabah06/03/02 00:41
inaccurate search string listsStacey Conrad05/22/02 11:17
Webalizer cron.daily ProblemSDC05/21/02 13:29
How to install & configure webalizerkais05/20/02 06:42
RE: statistics for all domains on one pageRemco05/19/02 09:09
RE: Best (looking) parser? Report Magic.Jamyn05/16/02 14:14
Webalizer InaccurateElliot Metsger04/30/02 14:30
Search terms, sorting logs, and site groupsStephen Ostermiller04/22/02 10:41
webalizer and dynamicly generated pagesphilipp04/15/02 07:14
search query stringsjohn dush03/24/02 16:18
RE: Problem compiling --with-dns, any hint ?Antoine03/18/02 05:58
AWStats vs WebalizerShortRound03/10/02 11:07
RE: can not open libpng.so.3chad03/09/02 19:31
RE: can not open libpng.so.3Ross Thomson03/08/02 09:08
RE: Need stats in 30 minutes? Go with awstatsChris02/28/02 14:57
Ive made a Script based on mySQL/Webalizer...Julia Jacobs02/22/02 21:48
Need stats in 30 minutes? Go with awstats.George K.02/21/02 14:42
RE: can not open libpng.so.3Ruud Ross02/16/02 16:09
greetingAlisoso, Allan Jibb02/11/02 21:43
ask questionAlisoso, Allan Jibb02/11/02 21:33
RE: statistics for all domains on one pagesimon atack02/03/02 21:22
uninstall webalizerAndrew01/29/02 15:43
RE: Webalizer to output Hits only???????MattM01/14/02 13:52
Webalizer to output Hits only???????Michael Haddad01/11/02 11:27
fail to get this work...ckevin01/09/02 10:26
My Pick for Apache - AWStats David McInnis01/04/02 23:06
RE: Beware Code Red can hurt you [linux]Matt01/04/02 06:58
Creating user accounts in web serversSaravanan 01/02/02 10:19
RE: statistics for all domains on one pageAlexander12/18/01 08:54
RE: single logfile for all domainsmatt12/13/01 16:00
RE: Ive made a Script based on mySQL/Webalizer...Dan McCullough12/07/01 20:16
single logfile for all domainsSlavik12/06/01 04:20
Where do I put webalizer.min?Bill12/04/01 17:39
RE: Problem compiling --wtih-dns, any hint ?Chris Cralele11/16/01 11:25
RE: can not open libpng.so.3Evan Raskob11/14/01 18:51
IP blockingpaul kelly11/12/01 17:10
log problems?roll-on11/05/01 18:09
RE: Problem compiling --wtih-dns, any hint ?Earnpin11/05/01 01:03
Webalizer poorly documentedAaron11/04/01 14:10
Webalizer for all domainsÉverton M. Gonçalves11/01/01 13:25
CustomLog ParameterRicardo Núnez10/27/01 20:47
Ive made a Script based on mySQL/Webalizer...Sascha Kulawik10/26/01 09:32
RE: another obsolite articleDavid10/16/01 21:39
A better log analyzer - MagicStatsTanya Brethour10/15/01 17:23
dns zone problemozzo10/09/01 11:59
RE: Problem compiling --wtih-dns, any hint ?Bernd Albers10/01/01 15:24
RE: another obsolite articlephp monacko09/25/01 23:52
RE: Webalizer and mass dynamic virtual hostingphp monacko09/25/01 23:48
another obsolite articlePatrick Zzz09/24/01 16:03
can not open libpng.so.3 skywalk09/23/01 10:31
Webalizer with Plesk Control PanelVinod Vyas09/23/01 04:20
Segmentation Fault with webalizerRobbie09/20/01 18:47
RE: Web Server farm log analysisS D09/20/01 10:45
Problem compiling --wtih-dns, any hint ?Sergio09/17/01 09:27
RE: Beware Code Red can hurt you [linux]Ian Holmes09/11/01 04:40
Webalizer and mass dynamic virtual hostingPhill Kenoyer09/10/01 20:56
TIM, COME BACK!!michael kristopeit09/10/01 16:11
RE: Beware Code Red can hurt you [linux]jason09/10/01 11:47
RE: Web log analyzerccbcreg09/10/01 09:43
statistics for all domains on one pageChristian Lox09/10/01 09:08
RE: Beware Code Red can hurt you [linux]momirlan09/09/01 21:59
Web Server farm log analysisAndy Lakka09/07/01 17:07
Web log analyzerLance Rochelle09/06/01 21:28
not bad...phil09/06/01 12:50
a little clunkyMicheal O SHea09/06/01 11:37
Beware Code Red can hurt you [linux]Phil09/06/01 02:38
 

If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly.

Add A Comment:

Name:

Email:

Subject:

Message:

To reduce spam posts, messages are now manually approved

You are not [logged in]. That means your account will not get credit for this post.