Re: HOWTO: Awstats + Confixx
Posted: 2007-04-23 11:20
Sorry, wenn ich den Thread nochmal aufrolle. Ich habe alles nach der Anleitung von MONK installiert.
Ich hab zum Test erstmal eine conf Datei für eine meiner Domains manuell angelegt. Wenn ich nun versuche den Befehl auszuführen:
/usr/share/awstats/tools/awstats_updateall.pl now -awstatsprog=/var/www/web1/html/cgi-bin/awstats/awstats.pl
krieg ich vom Script folgende Meldung:
In jeder Zeile im Log steht das aber in diesem Format:
77.0.105.122 - - [23/Apr/2007:11:02:59 +0200] "GET /3.gif HTTP/1.1" 200 1100 "http://www.domain1.com/seite1.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; SIMBAR={C44AF36E-B351-4964-9139-66B767DD52AC}; .NET CLR 1.1.4322)" http://www.domain1.com
Was kann das sein? Den Eintrag in die httpd.conf zwecks Logformat hab ich vorgenommen!
Warum sind auch immer 2 Bindestriche nach der IP (host) im Log?
P.S.: Ich habe meine domain für diesen Post hier überall in domain1.com geändert, weil das nicht meine Domain ist und ich keinen ärger will...
Ich hab zum Test erstmal eine conf Datei für eine meiner Domains manuell angelegt. Wenn ich nun versuche den Befehl auszuführen:
/usr/share/awstats/tools/awstats_updateall.pl now -awstatsprog=/var/www/web1/html/cgi-bin/awstats/awstats.pl
krieg ich vom Script folgende Meldung:
Code: Select all
/var/www/web1/log$ /usr/share/awstats/tools/awstats_updateall.pl now -awstatsprog=/var/www/web1/html/cgi-bin/awstats/awstats.pl
Running '"/var/www/web1/html/cgi-bin/awstats/awstats.pl" -update -config=domain1.com -configdir="/etc/awstats"' to update config domain1.com
Create/Update database for config "/etc/awstats/awstats.domain1.com.conf" by AWStats version 6.6 (build 1.887)
From data in log file "/var/www/web1/log/access_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/www/web1/log/access_log must have a bad format or LogFormat parameter setup does not match this format.
Your AWStats LogFormat parameter is:
%host %other %logname %time1 %methodurl %code %bytesd %refererquot %uaquot %virtualname
This means each line in your web server log file need to have the following personalized log format:
%host %other %logname %time1 %methodurl %code %bytesd %refererquot %uaquot %virtualname
And this is an example of records AWStats found in your log file (the record number 50 in your log):
84.175.58.73 - - [19/Apr/2007:09:25:09 +0200] "GET /logo/home.gif HTTP/1.1" 200 337 "http://www.domain1.com/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"www.domain1.com
Setup ('/etc/awstats/awstats.domain1.com.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).77.0.105.122 - - [23/Apr/2007:11:02:59 +0200] "GET /3.gif HTTP/1.1" 200 1100 "http://www.domain1.com/seite1.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; SIMBAR={C44AF36E-B351-4964-9139-66B767DD52AC}; .NET CLR 1.1.4322)" http://www.domain1.com
Was kann das sein? Den Eintrag in die httpd.conf zwecks Logformat hab ich vorgenommen!
Warum sind auch immer 2 Bindestriche nach der IP (host) im Log?
P.S.: Ich habe meine domain für diesen Post hier überall in domain1.com geändert, weil das nicht meine Domain ist und ich keinen ärger will...