[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: vsftpd xferlog + awstats



On Thu, 31 Mar 2005, Gavin Young wrote:

Has anyone been able to successfully get Awstats to work with vsftpd's
xferlog?

Vsftpd server is working as required and Awstats has been set-up to
import vsftpd's xferlog as per the examples on the awstats website and
it all works correctly as long as there are no spaces in the filenames
being transfered. As soon as there are spaces in the filename awstats
thinks it's the next field and ends up dropping the log line because it
doesn't conform.

As I see it there is two possible solutions:
1) Get vsftpd to log filenames in xferlog without spaces automatically
OR
2) Run a script over the xferlog log, identify the filename field and
change all 'spaces' into '_' or similar and then run awstats over the
modified log.

Gavin,
From what I can tell you're right in that awstat uses space as the default delimiter (or similar user configured delimiters) for log file field extraction hence the breakage. I found the following perl script to process vsftpd.log into an awstat friendly format just as you suggest in 2).


https://osgpcq.no-ip.com/osg/Contribution/awstats.html

I ran it on an vsftpd.log I've got an it seemed to provide an appropriate (no-space filenames) version of the log. However it doesn't just process the filename field so check the output as you may want / need to adapt it to fit your specific needs.

Regards,
    Stephen


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]