Goaccess (Debian): Unterschied zwischen den Versionen
Aus Matts Wiki
Matt (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Matt (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 6: | Zeile 6: | ||
Webseite: https://goaccess.io/ | Webseite: https://goaccess.io/ | ||
Man Page: https://goaccess.io/man | |||
== Installation == | == Installation == | ||
| Zeile 24: | Zeile 26: | ||
https://goaccess.io/download#distro | 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 - | zcat -f /var/log/apache2/access.log* | goaccess - -o report.html | ||
== 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 | |||
[[Category:Linux]] | [[Category:Linux]] | ||
Aktuelle Version vom 29. September 2025, 01:57 Uhr
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
