I. INTRODUCTION
1.goaccess powerful tool for analyzing Apache and Nginx logs
2. Official website:
Https://goaccess.io
Two. Installation
1. Download the Goaccess installation package
wget http://tar.goaccess.io/goaccess-1.1.1.tar.gz
2. If you need to enable GEOIP, then 1.1 version, need geoip.1.4.7 version, compile and install geoip.1.4.7
Cd/usr/local/src
wget http://geolite.maxmind.com/download/geoip/api/c/GeoIP-1.4.7.tar.gz
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
Tar xzvf geoip-1.4.7.tar.gz
CD GeoIP-1.4.7
./configure && make && make install
MV geoip.dat.gz/usr/local/share/geoip/
3. Compile and install Goaccess
TAR-XZVF goaccess-0.8.1.tar.gz
CD GOACCESS-0.8.1/
TAR-XZVF goaccess-1.1.1.tar.gz
CD GOACCESS-1.1.1/
./configure--enable-geoip--enable-utf8
Make
Make install
If it appears
Goaccess:error while loading shared libraries:libgeoip.so.1
Error
Ln-s/usr/local/lib/libgeoip.so*/lib64/
Three. Use
1. Simple to use
Goaccess-f Access.log
2. Using the specified configuration file
Wget-o. GOACCESSRC https://raw.githubusercontent.com/allinurl/goaccess/master/config/goaccess.conf-- No-check-certificate
VI. GOACCESSRC
Select and edit the appropriate Date-format,log-format,time-format
Goaccess-f access.log-d-a-p ~/.goaccessrc
For more detailed use: Https://goaccess.io/man
Installation and use of goaccess