Skip to content

Instantly share code, notes, and snippets.

@ivodvb
Created April 22, 2018 12:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivodvb/3a3d9694ba031b0b340b51f8f0e9b064 to your computer and use it in GitHub Desktop.
Save ivodvb/3a3d9694ba031b0b340b51f8f0e9b064 to your computer and use it in GitHub Desktop.
goaccess setup (tested on Ubuntu 16.04 and Debian 7)
apt update && apt upgrade -y && \
apt install -y libncursesw5-dev libglib2.0-dev libgeoip-dev libtokyocabinet-dev build-essential && \
wget http://tar.goaccess.io/goaccess-1.2.tar.gz && \
tar -xzvf goaccess-1.2.tar.gz && \
cd goaccess-1.2/ && \
./configure --enable-utf8 --enable-geoip=legacy && \
make && \
make install && \
sed -i 's/\#time-format %H:%M:%S/time-format %H:%M:%S/g' /usr/local/etc/goaccess.conf && \
sed -i 's/\#date-format %d\/%b\/%Y/date-format %d\/%b\/%Y/g' /usr/local/etc/goaccess.conf && \
sed -i 's/\#log-format %h %\^\[%d:%t %\^\] "%r" %s %b "%R" "%u"/log-format %h %\^\[%d:%t %\^\] "%r" %s %b "%R" "%u"/g' /usr/local/etc/goaccess.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment