[英]Understanding IIS 7 log files
I'm trying to debug a 405 error that is occurring in an ASP.NET 4.0 website with a jQuery AJAX post, and I've got the following from an IIS log file. 我正在尝试使用jQuery AJAX帖子调试ASP.NET 4.0网站中发生的405错误,并且我从IIS日志文件中获得以下内容。
2012-07-02 15:15:37 XXX.XX.XX.XXX POST /AjaxWebMethods.aspx/TestWebMethod - 443 - XXX.XX.XX.XX Mozilla/5.0+(Windows+NT+5.1;+rv:13.0)+Gecko/20100101+Firefox/13.0.1 405 0 0 218
My question: what does the 405 0 0 218
at the end of the log signify? 我的问题:日志末尾的
405 0 0 218
是什么意思? I'm assuming that the 405 portion is the client error number, but what are the 3 remaining numbers? 我假设405部分是客户端错误号,但剩下的3个数字是多少?
Take a look at the top of your log file and you'll see something like this: 看一下日志文件的顶部,你会看到如下内容:
#Software: Microsoft Internet Information Services 7.5 #Version: 1.0 #Date: 2011-04-13 19:02:34 #Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status time-taken
The #Fields
row will tell you what each value represents. #Fields
行将告诉您每个值代表什么。 In your case, and presuming you're running with the default log settings, the values would be: 在您的情况下,并假设您使用默认日志设置运行,值将是:
sc-status sc-substatus sc-win32status time-taken ==================================================== 405 0 0 218
sc-status
- is the major part of the HTTP status code sc-status
- 是HTTP状态代码的主要部分 sc-substatus
- is the sub status eg for a 503.19
HTTP status it would be the 19
part sc-substatus
- 是子状态,例如对于503.19
HTTP状态,它将是19
部分 sc-win32status
- is a Windows system error code sc-win32status
- 是一个Windows系统错误代码 time-taken
- is the time taken to send the response in milliseconds time-taken
- 是以毫秒为单位发送响应所用的时间 If you're getting non-zero values for sc-win32status
you can use: 如果你为
sc-win32status
获得非零值,你可以使用:
NET HELPMSG <sc-win32status value>
...to find out that that status code maps to. ...发现该状态代码映射到。
If a field doesn't have a value in the log file then the missing value is shown as a hyphen -
. 如果字段在日志文件中没有值,则缺失值将显示为连字符
-
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.