My question is very simple: www/awstats can process ftpd(8)'s xferlog? If yes how can do it?
With vsFTPd, or any FTP server that log with xferlog format:
1- Check your server log file format:
Take a look at your FTP server log file. You must have a format that match the following example to use this FAQ :
Code:Wed Jan 01 19:29:35 2001 1 192.168.1.1 102 /home/file1.txt b _ o r username ftp 0 * c
Sep 12 19:05:51 bsd-vps ftpd[35082]: connection from ###.###.###.###
Sep 12 19:05:52 bsd-vps ftpd[35082]: ANONYMOUS FTP LOGIN FROM ###.###.###.###, cfnetwork@apple.com
Sep 12 19:05:52 bsd-vps ftpd[35082]: session root changed to /usr/home/ftp/public
Sep 12 19:05:52 bsd-vps ftpd[35082]: get /homepage/stuff/math/jobs/kombinatorika_09.pdf = 115086 bytes (wd: /homepage/stuff/math/jobs; chrooted)
awstats
's logfile will a pipe? This program create from syslog-style xferlog (joins some lines) a simple format.transforms to:Sep 12 19:05:51 bsd-vps ftpd[35082]: connection from ###.###.###.###
Sep 12 19:05:52 bsd-vps ftpd[35082]: ANONYMOUS FTP LOGIN FROM ###.###.###.###, cfnetwork@apple.com
Sep 12 19:05:52 bsd-vps ftpd[35082]: session root changed to /usr/home/ftp/public
Sep 12 19:05:52 bsd-vps ftpd[35082]: get /homepage/stuff/math/jobs/kombinatorika_09.pdf = 115086 bytes (wd: /homepage/stuff/math/jobs; chrooted)
Sep 12 19:05:51 ANONYMUS ###.###.###.### /usr/home/ftp/public/homepage/stuff/math/jobs/kombinatorika_09.pdf 115086