If you are using centos, use yum:
Yum install goaccess
If your yum cannot find goaccess, install epel first.
Wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm sudo rpm-Uvh remi-release-6 *. rpm epel-release-6 *. rpm
GoAccess can also generate reports in HTML format:
$/Usr/local/bin/goaccess-f/var/log/apache2/access. log-a> report.html
I recorded this point, and the other ones are better.
Usage
The basic syntax of GoAccess is as follows:
Goaccess [-B] [-s] [-e IP_ADDRESS] [-a] <-f log_file>
Parameter description:
-F-log file name
-B-enable traffic statistics. This parameter is not recommended if you want to accelerate the analysis speed.
-S-enable HTTP response code statistics
-A-enable user agent statistics
-E-enable specified IP address statistics. Disabled by default.
Usage example:
The simplest and most commonly used command is to directly call the goaccess command without any other parameters that affect efficiency.
Goaccess-f access. log
To view other information, add the following parameters to display HTTP response code, user proxy, and traffic consumption.
Goaccess-f access. log-s-a-B
Ps:
Install and compile the required tools and libraries for GoAccess on CentOS 6.5:
# Yum groupinstall 'development tool'
# Yum install glib2 glib2-devel ncurses-devel
Install and compile the required tools and libraries for GoAccess on Ubuntu 12.04:
$ Sudo apt-get install build-essential
$ Sudo apt-get install libglib2.0-dev libncursesw5-dev