解析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.
下面是我的vhost配置:
ExtendedLog /home/cnam/ftp/logs/proftpd_log read,write awstats
TransferLog none
在主proftpd配置文件中:
LogFormat awstats "%t %h %u %m %f %s %b"
我确实在%tags
指令中放置了一个制表符字符,而不是LogFormat
之间的空格。
我输入了vhost的awstats配置:
LogType="F"
LogFormat="%time1 %host %logname %method %url %code %bytesd"
LogSeparator="\t"
发布于 2016-09-17 23:56:14
此日志格式不适用于AWStats。它被认为是被AWStats破坏的,可能是因为您的本地语言。
/usr/lib/cgi-bin/awstats.pl -config=exemple.com -showcorrupted
您必须同时更改ProFTPd和AWStat的日志格式:
医生:
https://serverfault.com/questions/778302
复制相似问题