Created
April 22, 2018 12:03
-
-
Save ivodvb/3a3d9694ba031b0b340b51f8f0e9b064 to your computer and use it in GitHub Desktop.
goaccess setup (tested on Ubuntu 16.04 and Debian 7)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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