Skip to content

Instantly share code, notes, and snippets.

@richardwellerson
Last active September 21, 2021 21:09
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save richardwellerson/a1415726f70e8e8aeadb9b65ce28798a to your computer and use it in GitHub Desktop.
GoAccess Installation

GoAccess Guide Install

I've tried so much times install GoAccess. For this reason, i create this gist to make your job easy.

Don't skip the steps:

Install GeoIP Lib

$ sudo su
# cd /usr/local/src
# wget https://github.com/maxmind/geoip-api-c/releases/download/v1.6.11/GeoIP-1.6.11.tar.gz
# tar -xzvf GeoIP-1.6.11.tar.gz
# cd GeoIP-1.6.11
# ./configure
# make
# make install

Install UTF-8 support lib dependency

$ sudo apt-get install libncursesw5-dev

Install GoAccess

$ sudo su
# cd /usr/local/src
# wget https://tar.goaccess.io/goaccess-1.4.5.tar.gz
# tar -xzvf goaccess-1.4.5.tar.gz
# cd goaccess-1.4.5/
# ./configure --enable-utf8 --enable-geoip=legacy
# make
# make install

Edit .conf File

Remove comments from those lines:
$ sudo nano /usr/local/etc/goaccess/goaccess.conf

time-format %H:%M:%S
date-format %d/%b/%Y
log-format %h %^[%d:%t %^] "%r" %s %b "%R" "%u"

----
# Save and Exit
----
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment