eldy / AWStats

AWStats Log Analyzer project (official sources)
https://www.awstats.org
364 stars 121 forks source link

proftpd log - 0 hits on downloaded files #201

Open bkiziuk opened 3 years ago

bkiziuk commented 3 years ago

I started to use AWStats with proftpd server. While it generally works and processes the log file the proftpd is using, I can not get around the issue that the AWStat stats are constantly showing 0 hits on file downloads.

I have modified proftpd LogFormat to be:

LogFormat awstats "%t %h %u %m %f %s %b"    # this is using spaces between % variables
ExtendedLog /var/log/proftpd/xferlog read,write awstats
TransferLog none

and modified the expected LogFormat of AWStats:

LogType=F
LogFormat="%time1 %host %logname %method %url %code %bytesd"
LogSeparator=" "   # this is space

The proftpd log I get looks like this:

cat /var/log/proftpd/xferlog:

[24/Apr/2021:21:27:32 +0200] this.is.ip.address ftp RETR /mnt/ftp/subdir/subdir/file.zip 226 6437861

So, in AWStats report I can see the Host and the File type, but Downloads and Pages-URL stats report 0 hits. Is there anything I'm missing here?

This is hosted on Debian Testing. AWStats is a distro version 7.8-2

EDIT: it looks like I can see, in Pages-URL, hits for files with extensions like: .exe, .qm, .inf, .db, .xml, .dll but I can't see any .zip which is mostly the contents of the site. Downloads always show 0.