设为首页 收藏本站
查看: 1057|回复: 0

[经验分享] W3C Extended Log File Format (IIS 6.0)

[复制链接]

尚未签到

发表于 2015-8-13 12:54:49 | 显示全部楼层 |阅读模式
W3C Extended Log File Format (IIS 6.0)

  The W3C Extended log file format is the default log file format for IIS. It is a customizable ASCII text-based format. You can use IIS Manager to select which fields to include in the log file, which allows you to keep log files as small as possible. Because HTTP.sys handles the W3C Extended log file format, this format records HTTP.sys kernel-mode cache hits.
  Table 10.1 lists and describes the available fields. Default fields are noted.
Table 10.1 W3C Extended Log File Fields
FieldAppears AsDescription Default Y/N
Date
date
The date on which the activity occurred.
Y
Time
time
The time, in coordinated universal time (UTC), at which the activity occurred.
Y
Client IP Address
c-ip
The IP address of the client that made the request.
Y
User Name
cs-username
The name of the authenticated user who accessed your server. Anonymous users are indicated by a hyphen.
Y
Service Name and Instance Number
s-sitename
The Internet service name and instance number that was running on the client.
N
Server Name
s-computername
The name of the server on which the log file entry was generated.
N
Server IP Address
s-ip
The IP address of the server on which the log file entry was generated.
Y
Server Port
s-port
The server port number that is configured for the service.
Y
Method
cs-method
The requested action, for example, a GET method.
Y
URI Stem
cs-uri-stem
The target of the action, for example, Default.htm.
Y
URI Query
cs-uri-query
The query, if any, that the client was trying to perform. A Universal Resource Identifier (URI) query is necessary only for dynamic pages.
Y
HTTP Status
sc-status
The HTTP status code.
Y
Win32 Status
sc-win32-status
The Windows status code.
N
Bytes Sent
sc-bytes
The number of bytes that the server sent.
N
Bytes Received
cs-bytes
The number of bytes that the server received.
N
Time Taken
time-taken
The length of time that the action took, in milliseconds.
N
Protocol Version
cs-version
The protocol version —HTTP or FTP —that the client used.
N
Host
cs-host
The host header name, if any.
N
User Agent
cs(User-Agent)
The browser type that the client used.
Y
Cookie
cs(Cookie)
The content of the cookie sent or received, if any.
N
Referrer
cs(Referrer)
The site that the user last visited. This site provided a link to the current site.
N
Protocol Substatus
sc-substatus
The substatus error code.
Y

  
  For information about status codes, see IIS Status Codes.



A

字段 名称 说明
日期 Date 动作发生时的日期。
时间 Time 动作发生时的时间。
客户IP 地址 c-ip 访问服务器的客户端IP地址。
用户名 cs-username 通过身份验证的访问服务器的用户名。不包括匿名用户,它用连字符表示。
服务名 s-sitename 客户所访问的Internet服务于以及实例号。
服务器名 s-computername 产生日志条目的服务器的名字。
服务器IP 地址 s-ip 产生日志条目的服务器的IP地址。
服务器端口 s-port 客户端连接的端口号。
方法 cs-method 客户端企图执行的动作(例如GET方法)。
URI Stem cs-uri-stem 被访问的资源,例如Default.asp。
URI Query cs-uri-query 客户所执行的查询。
协议状态 sc-status 用HTTP或者FTP术语所描述的动作状态。
Win32状态 sc-win32-status 用Microsoft Windows的术语所描述的动作状态。
发送字节数 sc-bytes 服务器所发送的字节数。
接受字节数 cs-bytes 服务器所接受到的字节数。
花费时间 time-taken 执行动作所消耗的时间,以毫秒为单位。
协议版本 cs-version 客户端所用的协议(HTTP、FTP)版本。对HTTP协议来说是HTTP 1.0或者HTTP 1.1。
主机 cs-host 主机报头(host header)所显示的内容。
用户代理 cs(User-Agent) 客户所用的浏览器。
Cookie cs(Cookie) 发送或者接受到的cookie内容。
Referrer cs(Referer) 用户浏览的前一个网址,当前网址是从该网址链接过来的。

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-98484-1-1.html 上篇帖子: WCF 第七章 寄宿 在一个IIS寄宿服务中开启ASMX特性 下篇帖子: Inside IIS And ASP.NET [ 4 ]
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表