Installation and use of goaccess

Source: Internet
Author: User
Tags geoip maxmind

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.