Goaccess (Debian)
Aus Matts Wiki
Goaccess ist eine Live-Analyse-Software für Webserver-Logdateien. Ausgabe ist möglich in:
- Konsolenanwendung
- HTML
- JSON
Webseite: https://goaccess.io/
Man Page: https://goaccess.io/man
Installation
Kompilieren aus der Source
apt-get install make libncursesw5-dev libgeoip-dev cd /opt wget http://tar.goaccess.io/goaccess-0.9.8.tar.gz tar -xzvf goaccess-0.9.8.tar.gz cd goaccess-0.9.8/ ./configure --enable-geoip --enable-utf8 make make install
Installieren aus Debian-Source
Paketrepositories für Debian und Ubuntu:
https://goaccess.io/download#distro
Configuration
Notable configuration parameters:
- Use persistence
- Use GeoIP
How to Use
Run in Terminal
zcat -f /var/log/apache2/access.log* | goaccess -
Create Static HTML File
zcat -f /var/log/apache2/access.log* | goaccess - -o report.html
Create Realtime HTML File
When running realtime and publishing it to a web server, as shown below it is also recommended to use ssl:
goaccess -f /var/log/apache2/access.log -a -o /var/www/html/goaccess-report.html --real-time-html --ssl-cert=/path/to/cert.pem --ssl-key=/path/to/privkey.pem --daemonize
