Current User: Guest Login Register
Please consider registering


Register? | Lost Your Password?

Search Forums:


 






Minimum search word length is 3 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 1035

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 1035

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:
9 + 5
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 201

Currently Online:
16 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 494
Posts: 2361

Membership:

There are 1900 Members
There have been 244 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

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

Recent New Members: henrique, ScottWigle, mgshirinda, andersondj, gmbasile, o6asan

Administrators: Jean-Luc (1035 Posts)

Moderators: Jean-Luc (1035 Posts)