Site log real-time analysis tool goaccess use
System environment
CentOS Release 5.5 (Final)
Goaccess is an open-source website log real-time analysis tool.
The way goaccess works is to read and parse apache/nginx/lighttpd access log files, and then display the statistics in a more friendly way. Statistics include: Access profile, dynamic page requests, static page requests (slices, style sheets, scripts, etc.), visitor rankings, guest use of the operating system, browser used by visitors, routing domain names, 404 errors, search crawlers, search keywords and so on.
Goaccess's performance is good, according to the official test, the speed of processing log files on an Intel Xeon CPU @ 2.40ghz CPU, 2GB memory machine is 97000 lines per second.
Here's how to install the source code:
Install the tools and libraries you need to compile goaccess on CentOS:
# yum Groupinstall ' development Tools '
# yum Install glib2 glib2-devel ncurses-devel
Also install the tools and libraries you need to compile goaccess on Ubuntu 12.04:
$ sudo apt-get install build-essential
$ sudo apt-get install Libglib2.0-dev Libncursesw5-dev
Download the source code, compile, and install the goaccess:
$ wget http://downloads.sourceforge.net/project/goaccess/0.7.1/goaccess-0.7.1.tar.gz
$ TAR-XZVF goaccess-0.7.1.tar.gz
$ CD GOACCESS-0.7.1/
$./configure--enable-utf8
$ make
$ sudo make install
Run goaccess, select NCSA Combined Log Format:
$ goaccess-f/usr/local/nginx/logs/access.log
Resources:
Nginx Log Analysis tool goaccess http://www.cnblogs.com/yjf512/p/3640346.html
Analyze Nginx log files using goaccess visualization in the Centos6.3 of Linux systems http://my.oschina.net/jiangbianwanghai/blog/287694
Goaccess-nginx Log Analysis Tool Introduction http://hao360.blog.51cto.com/5820068/1344435
Site log real-time analysis tool goaccess use