How do I use Webalizer to analyze my Apache logs?
Author: Deron Eriksson
Description: This tutorial describes how to get up and running analyzing Apache access.log files with Webalizer.
Tutorial created using: Windows XP || Apache HTTP Server 2.2.4
(Continued from page 1)
Next, I'll run webalizer via:
webalizer -o C:\Apache2.2.4\htdocs\webalizer-stats C:\Apache2.2.4\logs\access.log
This command specifies that I'd like to use the 'webalizer-stats' directory that I created as the report destination. The ApacheSW access.log file is the file to be analyzed. Executing this command is shown here:
Now, if we check our 'webalizer-stats' directory, we can see that the statistical report files generated by Webalizer have been placed in this directory.
Since the webalizer-stats directory is within my Apache document root, I'll access the report through a web browser hitting my local Apache server. You can see that I have received page hits in May 2007 (which makes sense because it is May and I just installed Apache on this machine last night).
I'll drill into the 'May 2007' statistics. Here, we can see a variety of useful information about things like total hits, files, pages, visits, KBytes, unique sites, and unique URLs. We can also see averages per day and response codes.
Here is a graphical and tabular representation of daily statistics in May.
Here we can see hits broken down by hour. As you can see, I'm a night owl. Hoot hoot.
As one more example, here we can see hosts that hit my server. 192.168.1.106 and 127.0.0.1 are hits coming from my local machine, and 192.168.1.2 is coming from another computer on my local network that made some requests to my local Apache server.
Not bad for a free tool, huh? Bradford L. Barrett did a great job writing Webalizer!