parsing我的proftpd日志文件时,AWStats从不更新。
这是我得到的:
[root@localhost ~]# /usr/share/awstats/www/awstats.pl -config=ftpcnam:2121 -update Searching new records from beginning of log file... Jumped lines in file: 0 Parsed lines in file: 1 Found 0 dropped records, Found 0 comments, Found 0 blank records, Found 1 corrupted records, Found 0 old records, Found 0 new qualified records.
这是我的虚拟主机configuration的样子:
ExtendedLog /home/cnam/ftp/logs/proftpd_log read,write awstats TransferLog none
而在主要的proftpdconfiguration文件中:
LogFormat awstats "%t %h %u %m %f %s %b"
我没有在LogFormat指令中的%tags之间放置一个制表符char而不是空格。
我把vhost的awstatsconfiguration放进去:
LogType="F" LogFormat="%time1 %host %logname %method %url %code %bytesd" LogSeparator="\t"
这种日志格式不适用于AWStats。 它被认为是AWStats损坏,也许是因为你的本地语言。
/usr/lib/cgi-bin/awstats.pl -config=exemple.com -showcorrupted
您必须更改ProFTPd和AWStat的日志格式:
ProFTPd(与选项字符而不是空间):
LogFormat awstats "%{%Y-%m-%d %H:%M:%S}t %h %u %m %f %s %b"
AWStats的:
LogFormat="%time2 %host %logname %method %url %code %bytesd"
文档:
ProFTPd LogFormat
strftime(3)手册页