Skip to content

Instantly share code, notes, and snippets.

@pokev25
Last active March 21, 2017 00:37
Show Gist options
  • Save pokev25/f88c2ad04d27e42f68966eb13ad452c0 to your computer and use it in GitHub Desktop.
Save pokev25/f88c2ad04d27e42f68966eb13ad452c0 to your computer and use it in GitHub Desktop.
goaccess 1.2
cd /usr/local/etc
vim goaccess.conf
uncomment
# Apache/NGINX's log formats below.
#
time-format %H:%M:%S
# Apache/NGINX's log formats below.
#
date-format %d/%b/%Y
# NCSA Combined Log Format
#
log-format %h %^[%d:%t %^] "%r" %s %b "%R" "%u"
# Choose among color schemes
# 1 : Monochrome
# 2 : Green
# 3 : Monokai (if 256-colors supported)
#
color-scheme 3
# Enable real-time HTML output.
#
real-time-html true
ws-url goaccess.io
std-geoip true geoip-database /usr/local/share/GeoIP/GeoLiteCity.dat
#!/bin/bash
# https://goaccess.io/download
yum -y install geoip-devel ncurses-devel glib2-devel zlib-devel bzip2-devel
cd /usr/local/src
wget http://tar.goaccess.io/goaccess-1.1.tar.gz
tar -xzvf goaccess-1.1.tar.gz
cd goaccess-1.1/
./configure --enable-geoip --enable-utf8
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment