review
This commit is contained in:
parent
d993f4a501
commit
ed7beb9eaf
|
@ -1,4 +1,9 @@
|
|||
GoAccess #access.log
|
||||
---
|
||||
categories: web sysadmin system
|
||||
title: Howto GoAccess
|
||||
...
|
||||
|
||||
* Documentation:
|
||||
|
||||
GoAccess est un outil pour analyser facilement des logs Apache ou Nginx (et d'autres formats) : générer rapidement une page de rapport HTML, stats ncurses et même surveillance temps réel.
|
||||
|
||||
|
@ -14,11 +19,12 @@ Si besoin d'une version plus récente, l'upstream distribue des paquets Debian :
|
|||
# apt update && apt install goaccess
|
||||
~~~
|
||||
|
||||
Il faut un minimum de configuration pour gérer les dates via un fichier ~/.goaccessrc du type :
|
||||
Il faut ensuite éditer `/etc/goaccess.conf`, en choisissant le format de log, par exemple :
|
||||
|
||||
~~~
|
||||
date_format %d/%b/%Y:%T %z
|
||||
log_format %h - - [%d] "%r" %s %b "%R" "%u"
|
||||
time-format %H:%M:%S
|
||||
date-format %d/%b/%Y
|
||||
log-format %h %^[%d:%t %^] "%r" %s %b "%R" "%u"
|
||||
~~~
|
||||
|
||||
Pour générer un rapport HTML (un seul fichier, les styles sont inline) :
|
||||
|
@ -34,8 +40,10 @@ Pour suivre un access.log en temps réel :
|
|||
|
||||
# Erreur
|
||||
|
||||
~~~
|
||||
Fatal error has occurred
|
||||
Error occured at: src/parser.c - parse_log - xxxx
|
||||
No log format was found on your conf file.
|
||||
~~~
|
||||
|
||||
Si cette erreur survient, il faut modifier le fichier de conf /etc/goaccess.conf pour décomenter les valeurs logformat correspondant.
|
Loading…
Reference in a new issue