Howdy m8s.
In next article i want to show you how to make an easy statistical view for an web page only by using one simple tool called goaccess.
http://goaccess.prosoftcorp.com/
As they say to their site, this tool can provide a various information for your web site just by scanning log files from apache / nginx logs.
-General Statistics, Bandwidth etc. -Top Visitors -Requested files -Requested static files, images, swf, js, etc. -Referrers URLs -404 or Not Found -Operating Systems -Browsers and Spiders -Hosts, Reverse DNS, IP Location -HTTP Status Codes -Referring Sites -Unlimited log file size
For this review i’ll use VirtualBox image with Debian wheezey net-install with xfce.
Install methods:
1. debian package manager installer
If you install goaccess via debian wheezy installer it will put all packages needed for that tool and it will be ready for use.
But in that way you can’t use utf8 or geoip support.
sudo aptitude install goaccess
and you will have Version: 0.5-1
If you dont really need utf8/geoip the install part for you end with this simple command.
2. Manually compile
Here we shall install goaccess tool with fully support of utf8/geoip
Download it to your work dir..in my case this is /root/Downloads/
you need to install this libs
libglib2.0-dev libgeoip-dev libncursesw5-dev libncurses5-dev
Than you have to follow the exact instructions from the site:
wget http://downloads.sourceforge.net/project/goaccess/0.6/goaccess-0.6.tar.gz tar -xzvf goaccess-0.6.tar.gz cd goaccess-0.6/ ./configure --enable-geoip --enable-utf8 make make install
After compile is done you can use it on the fly by typing
goaccess -f /var/log/apache2/access.log -a -c
the “-c” options if for log/date configuration window.
In this window to show correctly apache log files you need to choose “NCSA Combined Log Format”
And this is all…now in console you can see in real time how log statistics is changing π