Thursday, January 9, 2014

GoAccess a Real time Web Server Log Analyzer

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.

GoAccess parses the specified web log file and outputs the data to the X terminal.

  •     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.
  •     404 or Not Found
  •     Hosts, Reverse DNS, IP Location
  •     Operating Systems
  •     Browsers and Spiders
  •     Referring Sites
  •     Referrers URLs
  •     Keyphrases
  •     Geo Location - Continents/Countries New
  •     HTTP Status Codes
  •     Ability to output JSON and CSV New
  •     Different Color Schemes
  •     Support for IPv6
  •     Unlimited log file size
  •     Output statistics to HTML.

  
Installation :
GoAccess has minimal requirements, it's written in C, ncurses, GLib >= 2.0.0, and GeoIP (optional) for geolocation data

# yum install ncurses-devel glib2-devel GeoIP*
# cd /opt
# 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

How to use GoAccess :
once it has been installed (no configuration is needed), just run it against your web log file: (-a is optional)



To generate full statistics we can run GoAccess as:
 # goaccess -f /var/log/httpd/access_log -a














Select a log format and press F10















To generate an HTML report:
#goaccess -f  /var/log/httpd/access_log -a > report.html

To generate a CSV file:
# goaccess -f access.log -o csv > report.csv


Thanks,
Vishal Vyas

For more information and usage please visit http://goaccess.prosoftcorp.com/

No comments:

Post a Comment

How to Install docker-compose CentOS7

 Install Docker-compose on CentOs7 Linux. yum install -y epel-release yum install -y python-pip pip install --upgrade pip pip install ...