awstats and vsftpd log format - Redhat

This is a discussion on awstats and vsftpd log format - Redhat ; I am having a little trouble with this log formatting. vsftp is putting the information out with in the standard format I must have something wrong with this darn "LogFormat" setting in AWstat. It is concidering every line in the ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: awstats and vsftpd log format

  1. awstats and vsftpd log format

    I am having a little trouble with this log formatting. vsftp is
    putting the information out with in the standard format

    I must have something wrong with this darn "LogFormat" setting in
    AWstat. It is concidering every line in the logs corrupt...

    vsftpd log format
    Wed May 26 11:47:21 2004 1 xxx.147.93.xxx 381 /850/txt.txt a _ i r
    user ftp 0 * c

    awstat LogFormat:
    "%other %time3 %other %other %host %bytesd %url %other %other %method
    %other %host %code %other %other %other"



    AWstats Update message:

    Update for config "/etc/awstats/awstats.test.conf" With data in log
    file "/var/log/vsftpd.log"... Phase 1 : First bypass old records,
    searching new record... Searching new records from beginning of log
    file... Jumped lines in file: 0 Parsed lines in file: 1885 Found 0
    dropped records, Found 1885 corrupted records, Found 0 old records,
    Found 0 new qualified records.


    any help would be greatly appreciated.
    thanks,
    ~ryan
    (I have setup this Awstats for Apache logs, it works great)

  2. Re: awstats and vsftpd log format

    NICE!!!! The Version 6.2 of awstats Fixed the problem (my guess it was
    some time formatting issue).



    I just used this from the new FAQ on awstats website:


    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 :
    Wed Jan 01 19:29:35 2001 1 192.168.1.1 102 /home/file1.txt b _ o r
    username ftp 0 * c

    2- Then setup AWStats to analyze the FTP log file:

    If your FTP log file format looks good, copy config file
    "awstats.model.conf" to "awstats.ftp.conf".
    Modify this new config file:
    LogFile="/var/log/xferlog"
    LogType=F
    LogFormat="%time3 %other %host %bytesd %url %other %other %method
    %other %logname %other %code %other %other"


    and it worked like a charm.. I'm so happy now.

    -Ryan


    rmb@mattmccoy.com (rmb) wrote in message news:...
    > I am having a little trouble with this log formatting. vsftp is
    > putting the information out with in the standard format
    >
    > I must have something wrong with this darn "LogFormat" setting in
    > AWstat. It is concidering every line in the logs corrupt...
    >
    > vsftpd log format
    > Wed May 26 11:47:21 2004 1 xxx.147.93.xxx 381 /850/txt.txt a _ i r
    > user ftp 0 * c
    >
    > awstat LogFormat:
    > "%other %time3 %other %other %host %bytesd %url %other %other %method
    > %other %host %code %other %other %other"
    >
    >
    >
    > AWstats Update message:
    >
    > Update for config "/etc/awstats/awstats.test.conf" With data in log
    > file "/var/log/vsftpd.log"... Phase 1 : First bypass old records,
    > searching new record... Searching new records from beginning of log
    > file... Jumped lines in file: 0 Parsed lines in file: 1885 Found 0
    > dropped records, Found 1885 corrupted records, Found 0 old records,
    > Found 0 new qualified records.
    >
    >
    > any help would be greatly appreciated.
    > thanks,
    > ~ryan
    > (I have setup this Awstats for Apache logs, it works great)


+ Reply to Thread