Outils pour utilisateurs

Outils du site


install:goaccess
apt-get install libncursesw5-dev
wget http://tar.goaccess.io/goaccess-1.2.tar.gz
tar -xzvf goaccess-1.2.tar.gz
cd goaccess-1.2
sudo ./configure --enable-utf8
sudo make
sudo make install

Puis pour lancer le temps réel :

goaccess /chemin/access.log --log-format=COMBINED -a -o /chemim/report.html --real-time-html

Mettre en service :

vi /usr/local/bin/goaccessreport
#!/bin/bash
goaccess /chemin/access.log --log-format=COMBINED -a -o /chemin/report.html --real-time-html --ignore-crawlers
vi /etc/systemd/system/goaccessreport.service
[Unit]
Description=Goaccess Web log Report For Madamebuzz.fr
After=network.target

[Service]
Type=simple
User=root
Group=root
Restart=always
ExecStart=/usr/local/bin/goaccessreport
StandardOutput=null
StandardError=null

[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl restart goaccessreport.service
systemctl status goaccessreport.service
install/goaccess.txt · Dernière modification : 2017/09/15 18:45 de linkuff