IIS 6.0 Log Format


 

Current User: Guest Login Register
Please consider registering

Search 
Search Forums:


 




IIS 6.0 Log Format

Add a New Topic Reply to Post
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 254

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 254

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.

Add a New Topic Reply to Post


Reply to Topic: IIS 6.0 Log Format

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

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 10 + 2        (Required)

Topic Reply:


 

WebStats1


About the InternetOfficer.com forum

Currently Online:

3 Guests

Maximum Online: 31

Forums:

Groups: 2

Forums: 7

Topics: 116

Posts: 566

Members:

There are 34 members

There are 96 guests


Jean-Luc has made 254 posts

Top Posters:

Steve - 14

flwg - 10

angelko - 5

cwei - 4

legend - 3

Administrator: Jean-Luc | Moderators: Jean-Luc


© Simple:Press Forum - Version 3.1.2 (Build 340)