Skip to content

Instantly share code, notes, and snippets.

@richardwellerson
Last active September 21, 2021 21:09
Show Gist options
  • Save richardwellerson/a1415726f70e8e8aeadb9b65ce28798a to your computer and use it in GitHub Desktop.
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