Current User: Guest Login Register
Please consider registering


Register? | Lost Your Password?

Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

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 815

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 815

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.

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 + 1
   


About the InternetOfficer.com Forum

Most Users Ever Online: 65

Currently Online:
14 Guests

Forum Stats:

Groups: 2
Forums: 8
Topics: 375
Posts: 1849

Membership:

There are 193 Members
There have been 197 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

cssfsu – 48
albert_newton – 30
cosminpana – 20
DTNMike – 16
x-plicit2009 – 14
deepakgupta – 14

Recent New Members: stewiedv, kre8web, xlancealotx, Robert25, geemist

Administrators: Jean-Luc (815 Posts)

Moderators: Jean-Luc (815 Posts)