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 6.0 Log Format

Reply to Post Add a New Topic
UserPost

8:07 am
March 23, 2008


cetin

New Member

posts 1

Hi,

I read somewhere that if you're using IIS 6.0, you should configure the log format parameter for custom logs like this;

LogFormat=”date time c-ip cs-username cs-method cs-uri-stem cs-uri-query sc-status sc-bytes cs-version cs(User-Agent) cs(Referer)”

I've read through the posts and saw that you configure custom logs like this;

LogFormat=”%time2 %url………

Which one is true for IIS 6.0 ? I have old logs in this format;

#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query cs-username c-ip cs(User-Agent) cs(Referer) sc-status sc-bytes time-taken

What should I write to LogFormat parameter to analyze this log?

Thanks for your help

edit:

I found out from your articles that

%time2 %other %method %url %query %logname %host %ua %referer %code %bytesd %other

would work with my type of log. But I'm still confused about the LogFormat I stated above (LogFormat=”date time c-ip cs-username cs-method cs-uri-stem cs-uri-query sc-status sc-bytes cs-version cs(User-Agent) cs(Referer)”). Which format should I use?

11:13 am
March 23, 2008


Jean-Luc

Admin

posts 1125

Hi,

You are right.

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

should work for your log files.

I recommend that you use the AWStats style of log format specification above.

AWStats understands parts of the Microsoft IIS style of log format specification. When you use the AWStats style, you are sure that AWStats understands what you mean; if you prefer to use the Microsoft IIS style, you have to be aware that AWStats does not understand all codes used by Microsoft in the log format specification. As I do not know any official list of the Microsoft codes suported by AWStats, I prefer to directly use the AWStats codes.

11:52 am
March 23, 2008


Jean-Luc

Admin

posts 1125

One more comment.

LogFormat=”date time c-ip cs-username cs-method cs-uri-stem cs-uri-query sc-status sc-bytes cs-version cs(User-Agent) cs(Referer)”

is not the same as

LogFormat=”date time s-ip cs-method cs-uri-stem cs-uri-query cs-username c-ip cs(User-Agent) cs(Referer) sc-status sc-bytes time-taken”

Several different log formats are popular with IIS.

1:34 pm
March 21, 2013


asa

Guest

Would you please help me to get this logformat:

Frown

 
 
2013-03-19      23:59:30        174.29.71.96    GET     "http://www.wipo.int:80/export/sites/www/madrid/en/fees/xls/fees.xls"   200     1337824 4.142   –   720      "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:10.0.2) Gecko/20100101 Firefox/10.0.2"        "http://www.wipo.int/madrid/en/fees/"   –       ""      "1337344"    Success 480     ""      ""      ""      ""

2013-03-19      23:59:58        206.190.75.9    GET     "http://www.wipo.int:80/sme/en/documents/pdf/technology_transfer.pdf"   200     21003   0.107   –   477      "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22"        "https://www.google.com/"       –   ""       "20502" Success 501     ""      ""      ""      ""
Reply to Post

Reply to Topic:
IIS 6.0 Log Format

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:
2 + 3
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
14 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 639
Posts: 2710

Membership:

There are 257 Members
There have been 304 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)