Install GoAccess Web Server Log Analyzer on CentOS/RHEL, Debian, Ubuntu

Overview

GoAccess is an open source real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems. It provides fast and valuable HTTP statistics for system administrators that require a visual server report on the fly. Source http://goaccess.prosoftcorp.com/

Install GoAccess Web Server Log Analyzer on CentOS/RHEL, Debian, Ubuntu

On CentOS/RHEL


# yum install ncurses-devel glib2-devel

Download the latest tarball, untar it and run configure, make and make install


# cd /tmp
# wget http://sourceforge.net/projects/goaccess/files/0.5/goaccess-0.5.tar.gz/download
# tar zxvf goaccess-0.5.tar.gz
# cd goaccess-0.5
# ./configure
# make
# make install

On Debian

Open sources.list file in an editor


# vim /etc/apt/sources.list

Append the following line to it.


deb http://ftp.de.debian.org/debian sid main

On Ubuntu

Open sources.list file in an editor


# vim /etc/apt/sources.list

Append the following line to it.


deb http://ubuntu.mirror.cambrium.nl/ubuntu/ natty main universe

Install goaccess using aptitude package manager


# apt-get update
# apt-get install goaccess

Next for goaccess to parse the log file and generate a html report execute.

On CentOS/RHEL


# goaccess -c -a -f /var/log/httpd/access_log > report.html

On Debian, Ubuntu


# goaccess -c -a -f /var/log/apache2/access.log > report.html

Executing goaccess with -c flag will let you choose between different log formats, for example an IIS server uses W3C format and apache uses NCSA or common log format.

Executing goaccess without any argument will provide you all the options that can be used.


# goaccess