Sziasztok!
Azt szeretném, ha az awstats a látogatók számlálásán túl, azok böngészőjéről, oprendszeréről is adna némi információt...de ami a_legfontosabb_: jelezze, hogy hányan, és milyen kulcsszavakkal jutottak el az adott weblaphoz.
A következőket tettem:
awstats.conf:
LogFormat = "%host %other %logname %time1 %methodurl %code %bytesd %refererquot %uaquot"
apache 1.33 httpd.conf:
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
(csak ezt az 1 logformat sort tettem bele, az eredei 6 helyett)
Az egyik szerveren működik, ott 1 logban dolgozik az apache, nincsenek vhostok.
A másik szerveren elakad a következő hibával:
perl /usr/lib/cgi-bin/awstats.pl -config=domain.hu
Update for config "/etc/awstats/awstats.domain.hu.conf"
With data in log file "/var/log/apache-ssl/access_domain_root.log"...
Phase 1 : First bypass old records, searching new record...
Direct access to last remembered record is out of file.
So searching it 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/apache-ssl/access_domain_root.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
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
And this is an example of records AWStats found in your log file (the record number 50 in your log):
213.178.107.171 - - [14/Jan/2007:06:42:32 +0100] "GET /toplista/in2.php?s=xxxxx&t=yyyyy100 HTTP/1.1" 302 5
Setup ('/etc/awstats/awstats.domain.hu.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).
Minden virtualhostot külön fájlban logolok a nagy forgalomra való tekintettel.
Virtualhostok kezelése:
VirtualHost www.domain.hu:80
Port 80
SSLDisable
ServerAdmin postmaster@domain.hu
DocumentRoot /mnt/raid/www/domain.hu/root/
Servername domain.hu
ErrorLog /var/log/apache-ssl/error_domain.hu_root.log
TransferLog /var/log/apache-ssl/access_domain.hu_root.log
IfModule mod_php3.c
php3_magic_quotes_gpc Off
php3_track_vars On
php3_include_path .
/IfModule
IfModule mod_php4.c
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals On
php_value include_path .
php_admin_value open_basedir /mnt/raid/www/tmp/:/mnt/raid/www/domain.hu/
/IfModule
/VirtualHost
Csak akkor emészti meg az apache logját, ha az awstatsban a logformat=4-t beirom. Igy viszont semmi infót nem kapok a a google-ról, arról h milyen oldalakról találtak ide, stb.
Hogy szoktátok ezt a megoldani?
Előre is köszönöm a segitséget!
Üdv, Proci
- 2655 megtekintés
Hozzászólások
213.178.107.171 - - [14/Jan/2007:06:42:32 +0100] "GET /toplista/in2.php?s=xxxxx&t=yyyyy100 HTTP/1.1" 302 5
ha ez a log-ból van, akkor tényleg nincsen benne a "referer" tag, amiből az awstats kitalálja, hogy honnan jöttek az oldaladra.
Ha jól tudom, a transferLog nem a megadott formátumot használja.
Amit beállítottál azt a "CustomLog file logformatnév" módon lehet elérni, és azt megadni az awstats-nak.
ld.
- A hozzászóláshoz be kell jelentkezni
Igazad volt! Remekül megy a CustomLoggal virtualhostokon belül.
Jómagam is próbáltam már a customloggal, de vhoston belül nem adtam neki logformatot:-/
Köszönöm a segitséged, most már remekül kiir mindent amit csak lehet:)
Proci
- A hozzászóláshoz be kell jelentkezni