GoAccess is an interactive and real time web server log analyzer program that quickly analyze and view web server logs. It comes as an open source and runs as a command line in Unix/Linux operating systems. It provides brief and beneficial HTTP (web server) statistics report for Linux administrators on the fly. It also take care of both the Apache and Ngnix web server log formats.
Install GoAccess# yum install ncurses-devel glib2-devel GeoIP*
# cd /usr/src
# 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
Use GoAccess?Once, goaccess is installed, execute 'goaccess' command without any arguments will list the help menu.
# goaccessGoAccess - 0.5
Usage: goaccess [ -e IP_ADDRESS][ - a ][ - c ]< -f log_file >
The following options can also be supplied to the command:
-f <argument> - Path to input log file.
-c - Prompt log/date configuration window.
-a - Enable a List of User-Agents by host.
For faster parsing, don't enable this flag.
-e <argument> - Exclude an IP from being counted under the
HOST module. Disabled by default.
Examples can be found by running `man goaccess`.
For more details visit: http://goaccess.prosoftcorp.com
GoAccess Copyright (C) 2009-2012 GNU GPL'd, by Gerardo Orellana
To get the any web server statistics use the flag '
f' with input log file name as shown below. The below command will give you general statistics of your web server logs.
# goaccess -f /var/log/httpd/domain.com
# goaccess -f /var/log/nginx/domain.com
give a try...