AWStats icon indicating copy to clipboard operation
AWStats copied to clipboard

proftpd log - 0 hits on downloaded files

Open bkiziuk opened this issue 4 years ago • 0 comments

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.

bkiziuk avatar Apr 25 '21 08:04 bkiziuk