GoAccess is an open source real-time Apache/Nginx log analyzer tool and interactive viewer that runs in a command-line.
It provides fast and valuable HTTP statistics for system administrators that require a visual server report on the fly. GoAccess will collect data from the parsed log and it will display it to the console or the X terminal. The collected information or generated reports will be displayed to the user/sysadmin in a visual/interactive window.
Features
GoAccess parses the specified web log file and outputs the data to the X terminal. Features include:
- General Statistics, bandwidth etc.
- Time taken to serve the request (useful to track pages that are slowing down your site)
- 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
- …
See more features
Nearly all web log formats
GoAccess allows any custom log format string. Predefined options include, but not limited to:
- Common Log Format (CLF) Apache
- Combined Log Format (XLF/ELF) Apache
- W3C format (IIS).
- Amazon CloudFront (Download Distribution).
- Apache virtual hosts
GoAccess Requirement
- ncurses
- GLib2 (>= 2.0.0)
- GeoIP (Optional)
Install Required Packages for GoAccess
Lets install required packages first using Yum utility:
For CentOS:
# yum install ncurses-devel glib2-devel geoip
For Ubuntu:
# apt-get install libncurses5-dev libglib2.0-dev *libgeoip-dev
Install GoAccess
First download latest stable version of GoAccess.
# wget http://downloads.sourceforge.net/project/goaccess/0.6/goaccess-0.6.tar.gz
Extract the file with Tar command.
# tar -xvf goaccess-0.6.tar.gz
Next ‘cd’ to to the directory containing the package’s source code and type `./configure’ to configure the package for your system.
# cd # ./configuregoaccess-0.6
If you want to enable geoip to `./configure’, you can pass.
# ./configure --enable-geoip
Type `make’ to compile the package.
# make
Type `make install’ to install the programs and any data files and documentation.
# make install
How To Use GoAccess
The simple and fastest way to use:
# goaccess -f /var/log/httpd/access_log
Reference: http://goaccess.prosoftcorp.com/