Awstats 不显示日志文件中的所有 IP

Awstats 不显示日志文件中的所有 IP

我已经在 Debian 服务器上安装了 AWstats。一切运行正常,但我在 awstats 页面上看不到日志文件中的所有条目。

我的配置如下:

LogFile="/var/log/apache2/access.log"

日志文件的第一个条目是:

141.212.122.160 - - [01/Jan/2016:07:02:54 -0500] "GET / HTTP/1.1" 301 6634 "-" "Mozilla/5.0 zgrab/0.x"

该 IP 从未出现在 awstats 页面的结果中。

我已删除 /var/lib/awstats 中所有早期的 awstats 文件,并使用以下命令更新它们:

# /usr/lib/cgi-bin/awstats.pl -config=apache -update
# /usr/lib/cgi-bin/awstats.pl -config=apache -output -staticlink > /var/www/awstats/index.html

我在 AWStats 页面上看到了一些条目。但肯定不是全部!

这是更新的结果:

Create/Update database for config "/etc/awstats/awstats.conf" by AWStats version 7.2 (build 1.992)
From data in log file "/var/log/apache2/access.log"...
Phase 1 : First bypass old records, searching new record...
Searching new records from beginning of log file...
Phase 2 : Now process new records (Flush history on disk after 20000 hosts)...
Jumped lines in file: 0
Parsed lines in file: 456
 Found 0 dropped records,
 Found 0 comments,
 Found 0 blank records,
 Found 0 corrupted records,
 Found 0 old records,
 Found 456 new qualified records.

我希望有人能帮助我。

谢谢。

问候 Claudio

答案1

尝试将日志格式从 1 更改为 4:

#LogFormat=1
LogFormat=4

相关内容