了解IIS 7日志文件 [英] Understanding IIS 7 log files
问题描述
我正在尝试使用jQuery AJAX帖子调试ASP.NET 4.0网站中发生的405错误,并且我从IIS日志文件中获得以下内容。
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.
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
我的问题:日志结尾的 405 0 0 218
是什么意思?我假设405部分是客户端错误号,但剩下的3个数字是多少?
My question: what does the 405 0 0 218
at the end of the log signify? I'm assuming that the 405 portion is the client error number, but what are the 3 remaining numbers?
推荐答案
看一看在日志文件的顶部,你会看到如下内容:
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
#Fields
行将告诉您每个值代表什么。在您的情况下,假设您使用默认日志设置运行,值将为:
The #Fields
row will tell you what each value represents. 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
- 是HTTP状态代码的主要部分 -
sc-substatus
- 是子状态,例如对于503.19
HTTP状态,它将是19
部分 -
sc-win32status
- 是 Windows系统错误代码 -
拍摄时间
- 以毫秒为单位发送响应所需的时间 sc-status
- is the major part of the HTTP status codesc-substatus
- is the sub status e.g. for a503.19
HTTP status it would be the19
partsc-win32status
- is a Windows system error codetime-taken
- is the time taken to send the response in milliseconds
如果您为 sc-win32status
获得非零值,您可以使用:
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.
如果某个字段在日志文件中没有值,则缺少的值显示为连字符 -
。
If a field doesn't have a value in the log file then the missing value is shown as a hyphen -
.
这篇关于了解IIS 7日志文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!