Current User: Guest Login
Please consider registering


Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

IIS 5.1 FTP Logs

Reply to Post Add a New Topic
UserPost

3:56 pm
December 25, 2008


Peter

Guest

Hello All,

First of all nice to see a site with a forum about awstats and iis :D

Now my question :

I have installed AWStats on my Windows XP Prof with IIS 5.1. Awstats for my default test site is working correctly , although I cannot get it to analize my FTP logs.

Logfile :

#Fields: date time c-ip cs-username s-sitename s-computername s-ip s-port cs-method cs-uri-stem cs-uri-query sc-status sc-bytes cs-bytes time-taken cs-version cs-host cs(User-Agent) cs(Referer)
2008-12-25 20:39:38 127.0.0.1 anonymous MSFTPSVC1 SERVER 127.0.0.1 21 [1]USER anonymous – 331 0 0 0 FTP – - -
2008-12-25 20:39:43 127.0.0.1 bla@bla.com MSFTPSVC1 SERVER 127.0.0.1 21 [1]PASS bla@bla.com – 230 0 0 0 FTP – - -
2008-12-25 20:39:54 127.0.0.1 bla@bla.com MSFTPSVC1 SERVER 127.0.0.1 21 [1]QUIT – - 226 0 0 0 FTP – - -

awstats.ftp.conf :

LogType=F
LogFormat=”%time2 %host %logname s-sitename s-computername s-ip s-port %method %url %other %code %bytesd %other %other %other cs-host %other %other”

This is the error :

Dropped record (method/protocol '[1]PASS' not qualified when LogType=F): 2008-12
-25 20:39:43 127.0.0.1 – MSFTPSVC1 SERVER 192.168.0.64 21 [1]PASS – - 530 0
0 16 FTP – - -

It seems my method is not a valid one. How can I get my FTP stats ?

9:48 am
December 27, 2008


Jean-Luc

Admin

posts 1125

Hi,

Unfortunately, I have to say that I am not experienced with stats for FTP on IIS. I am not even sure that AWStats supports the FTP log format of IIS.

Anyway, I looked in the awstats.pl  source code and did not find any reference to a PASS  method. There are two regular expressions defining what is equivalent to GET and to SENT at lines 6231 and 6232 in my 6.9 beta version of the program:

my $regget=qr/get|out/i;
my $regsent=qr/sent|put|in/i;

You can edit one of these lines and see if it helps.

Regarding the LogFormat  definition, I would use:

LogFormat="%time2 %host %logname %other %other %other %other %method %url %other %code %bytesd %other %other %other %other %other %other"

8:44 am
December 30, 2008


Peter

Guest

Hello,

It seems to be a bit more complicated as even [0]USER is not recognized as method. Too bad this is so complicated an no-one has any knowledge about it.

I tried to mess around with the $regget and $regsend but it didn't help much. I will drop this , as this is too much of work to find out the correct way the log should look like for awstats to getit working.

Thanks for all who reviewed / helped / answered.

Regards and a happy new year,

Peter

Reply to Post

Reply to Topic:
IIS 5.1 FTP Logs

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
3 + 9
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
64 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 638
Posts: 2709

Membership:

There are 257 Members
There have been 302 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

cssfsu – 55
deepakgupta – 34
albert_newton – 30
cosminpana – 20
DTNMike – 19
ahtshun83 – 17

Recent New Members: raju, todd2taylor, sbdcunha, mansigill1987, ThomasDuh, ThomasKic

Administrators: Jean-Luc (1125 Posts)

Moderators: Jean-Luc (1125 Posts)