IIS 7 Log fields
#Fields: date time s-sitename s-computername s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Cookie) cs(Referer) cs-host sc-status sc-substatus sc-win32-status sc-bytes cs-bytes time-taken
for example, the last several fields have values as below:
sc-status sc-substatus sc-win32-status sc-bytes cs-bytes time-taken
404 0 2 325 2481 0
sc-status - is the major part of the HTTP status code - 404: Not Found
sc-substatus - is the sub status of the HTTP status - 0
sc-win32status - is a Windows system error code - 2
If you're getting non-zero values for sc-win32status
you can use:
NET HELPMSG <sc-win32status value>
to find out that that status code maps to. for above exmple, the value is 2, so:
c:>NET HELPMSG 2
The system cannot find the file specified.