Using Awstats to analyse Serv-U logs

You will need the tool ServuEvent.dll (you can download it here:  http://ftpservertools.tripod.com/downloads.htm ).
Thanks to FTPServerTools for being a great help.

1) Here is a basic summary of the install:
a) Copy Servuevent.dll to your Serv-U install folder.

b) Add the following, at the end, of your ServUDaemon.ini:
[EXTERNAL]
EventHookDLL1=Servuevent.dll

c) In the Serv-U install folder create the file ServuEvent.ini containing the 3 lines:
[Events]

EndUp=HIDE|30|c:\winnt\system32\cmd.exe /c echo %[DATE] %[TIME] %[IP] %[name] RETR %[FILE] 226 %[SIZE]>>G:\Logs\CustomFTP\servu.log

EndDown=HIDE|30|c:\winnt\system32\cmd.exe /c echo %[DATE] %[TIME] %[IP] %[name] STOR %[FILE] 226 %[SIZE]>>G:\Logs\CustomFTP\servu.log


d) Now create a Awstats configuration file, adjusted for FTP. For inspiration here is my working configuration file, please adjust to your preferences.
#Note: This is a case were you might want PurgeLogFile=1 so it empties the log after each run
#Note since my FTP logs are on a different server then my Awstats
#I'm using the IP of my FTP server. I made the folder containing my FTP logs a share named "CustomFTP"
#If Awstats is running on the same server, your path might look more like:
#"C:\YourPathtoFTPlogs\servu.log"
LogFile="\\61.123.233.248\CustomFTP\servu.log"
LogType=F
LogFormat = "%time2 %host %logname %method %url %code %bytesd"
DNSLookup=2
DirData="F:\CustomReportsData\ServUFTP"
SiteDomain="www.sitebuddy.com"
HostAliases="www.sitebuddy.com"
DirIcons="/icon"
AllowToUpdateStatsFromBrowser=1
AllowFullYearView=3
PurgeLogFile=1

NotPageList=""
ValidHTTPCodes="226"
URLNotCaseSensitive=1
DebugMessages=1
Lang="auto"
DirLang="./lang"

FirstDayOfWeek=1
ShowFlagLinks="en fr"
HTMLHeadSection="Prepared by <a href="http://www.sitebuddy.com" target="_blank">Sitebuddy</a>"
HTMLEndSection="Prepared by <a href="http://www.sitebuddy.com" target="_blank">Sitebuddy</a>"

Logo="sitebuddy.jpg"
LogoLink="http://www.sitebuddy.com"

LoadPlugin="geoip"
#LoadPlugin="geoipfree"
LoadPlugin="hostinfo"
LoadPlugin="hashfiles"

LevelForFileTypesDetection=1
LevelForBrowsersDetection=0
LevelForOSDetection=0
LevelForRefererAnalyze=0
LevelForRobotsDetection=0
LevelForWormsDetection=0
LevelForSearchEnginesDetection=0
LevelForKeywordsDetection=0
LevelForWormsDetection=0
ShowLinksOnUrl=0

ShowMenu=1
ShowSummary=VHB
ShowMonthStats=VHB
ShowDaysOfMonthStats=VHB
ShowDaysOfWeekStats=HB
ShowHoursStats=HB
ShowDomainsStats=HB
ShowHostsStats=HBL
ShowAuthenticatedUsers=HBL
ShowRobotsStats=0
ShowSessionsStats=0
ShowPagesStats=PBEX
ShowFileTypesStats=HB
ShowFileSizesStats=1
ShowOSStats=0
ShowBrowsersStats=0
ShowScreenSizeStats=0
ShowOriginStats=0
ShowKeyphrasesStats=0
ShowKeywordsStats=0
ShowMiscStats=0
ShowHTTPErrorsStats=0

MaxRowsInHTMLOutput=1000
MaxNbOfDomain = 25
MaxNbOfHostsShown = 100
MaxNbOfLoginShown = 100
MaxNbOfPageShown = 100