• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Awstats habs fast - LogFormat Probleme

Hallo, habe mich nun etwas mit awstats auf meinen Linux Server rumgeschlagen ( 9.3 Pro - auf Suse Linux - ansonsten alles neuste Versionen ).

Awstats habe ich mit Webmin istalliert bzw konfiguriert.
Wenn ich folgendes in die Adressleiste in Browser www.domain.de/cgi-bin/awstats.pl eingebe, kommt auch die statistik nur ohne Werte.

Beim Generieren kommt folgende Meldung in Webmin

----------------------------------------------------------------------------------------------------------
Run update process with command:
/srv/www/cgi-bin/awstats.pl -update -config=kbhund -configdir=/etc/awstats
Please wait...

Update for config "/etc/awstats/awstats.kbhund.conf" With data in log file "//var/log/apache2/kbboxer_log"... Phase 1 : First bypass old records, searching new record... Searching new records from beginning of log file... 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 //var/log/apache2/kbboxer_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): p54b8a4cd.dip0.t-ipconnect.de - - [27/Oct/2005:10:24:34 +0200] "GET /typo3/ HTTP/1.1" 200 299 Setup ('/etc/awstats/awstats.kbhund.conf' file, web server or permissions) may be wrong. Check config file, permissions and AWStats documentation (in 'docs' directory).

------------------------------------------------------------------------------------------------------------------
Aus meiner Sicht muss es am Logformat liegen.

Im Virtuellen Host steht in "CostumLog" der Pfad zur Logdatei ....../kboxer_log common

In "LogFormat" "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" common

Die Info hierfür habe ich von dieser Seite: http://www.x-fish.org/apache_awstats.html

Würde mich für eine kleine Hilfe sehr freuen

Mfg wupp
 
Hi,

"LogFormat" "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" common

fast, 'common' durch 'combined' ersetzen sollte da helfen. So läuft
das jedenfalls bei mir mit AWStats 6.4 unter SuSE 9.3 problemlos.

Gruss, Zyrus
 
Danke erstmal für die Hilfe, hat die Lösung gebracht und stehe jetzt vor einem Error: ( beim Aufruf vom www.domain.de/cgi-bin/awstats.pl )

-------------------------------------------------------------------------------------------------------------
Error: SiteDomain parameter not defined in your config/domain file. You must edit it for using this version of AWStats.

Setup ('/etc/awstats/awstats.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).

---------------------------------------------------------------------------------------------------------

Woran könnte das noch liegen '?

lc2.jpg
 
Hi,
check, wie die Fehlermeldung schon sagt die Dateirechte. Unter Debian legt Apache das Logfile standartmäßig mit -rw-rw---- an. Du solltest also der Datei auch leserechte für Sonstige geben, damit awstats die Dateil lesen kann (chmod +r /var/log/apache/access.log (oder wie auch immer^^))

Ansonsten sollte die Config auch gleich wieder der Domainname heißen, dann findet AWstat die richtige Config gleich zur URL ;)
 
Oben