22
0
Fork 0

Interface web + WebSocket

This commit is contained in:
Benoît S. 2019-02-13 15:54:49 +01:00
parent 8c80893deb
commit 54ea38c2b0
1 changed files with 26 additions and 0 deletions

View File

@ -60,6 +60,32 @@ Pour avoir un access de 12h à 16h du 1er Fevrier :
# goaccess -f goaccess.tmp -a -o html
~~~
# Interface web + WebSocket
Pour avoir le suivi en temps réel dans un navigateur, on peut créer une unité systemd qui lancera GoAccess et sa WebSocket.
`/etc/systemd/system/goaccess.service`.
~~~
[Unit]
Description=GoAccess real time web stats.
After=network.target
[Service]
ExecStart=/usr/bin/goaccess -p /etc/goaccess/goaccess.conf /var/log/haproxy.log -o /var/www/goaccess.html --real-time-html --daemonize
Type=forking
User=goaccess
[Install]
WantedBy=default.target
~~~
~~~
# systemctl daemon-reload
# systemctl enable goaccess
# systemctl start goaccess
~~~
# Erreur
~~~