Bonjour;

Je souhaite utiliser AWStats pour réaliser des statistiques pour mon site web.
Pour mon site j'ai un Vhost qui a un format de logs personnalisé et les logs du site sont stockés ailleurs que le dossier apache (/apache/log) :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
LogFormat "%t %a \"%{X-Forwarded-For}i\" %P %I/%O %T/%D %>s \"%r\" \"%{Referer}i\" \"%{User-Agent}i\"" wpformat
CustomLog "/donnees/traces/site_access.log" combined
J'ai installé et configuré AWStats mais quand je génère les stats, j'ai cette erreur :

AWStats did not find any valid log lines that match your LogFormat parameter, in the 50th first non commented lines read of your log.
Your log file /dq_/dq_admaa/donnees/traces/dq_bips_u1_access.log must have a bad format or LogFormat parameter setup does not match this format.
Your AWStats LogFormat parameter is:
1
This means each line in your web server log file need to have "combined log format" like this:
111.22.33.44 - - [10/Jan/2001:02:14:14 +0200] "GET / HTTP/1.1" 200 1234 "http://www.fromserver.com/from.htm" "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"
And this is an example of records AWStats found in your log file (the record number 50 in your log):
[01/Oct/2015:14:44:43 +0200] 221.64.72.5 "-" 15786 2036/18224 0/5203 200 "GET ......."
Mon fichier de conf AWStats contient les valeurs suivantes :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
LogType=W
LogFormat=1
LogSeparator=" "
LogFile="/donnees/traces/site_access.log"

j'ai modifié le fichier de conf d'apache "httpd.conf" en ajoutant le format utilisé dans le vhost mais sans succès ?

Je n'arrive pas à modifier le format des logs apache pour qu'elle soient compatibles avec le format de AWStats.

Merci de votre aide