摘录:W3C Extended Log File Format (IIS 6.0)

本文涉及的产品
日志服务 SLS,月写入数据量 50GB 1个月
简介:
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
Field Appears As Description 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.
  Note
FTP log files do not record the following fields:
cs-uri-query
cs-host
cs(User-Agent)
cs(Cookie)
cs(Referrer)
sc-substatus
You can select as many of the W3C Extended log file fields as you want. However, not all fields will contain information. For fields that are selected but for which there is no information, a hyphen (-) appears as a placeholder. If a field contains a nonprintable character, HTTP.sys replaces it with a plus sign (+) to preserve the log file format. This typically occurs with virus attacks, when, for example, a malicious user sends carriage returns and line feeds that, if not replaced with the plus sign (+), would break the log file format.
Fields are separated by spaces. Field prefixes have the following meanings:
s- Server actions
c- Client actions
cs- Client-to-server actions
sc- Server-to-client actions
  Note
For the  time-taken field, the client-request timestamp is initialized when HTTP.sys receives the first byte, but before HTTP.sys begins parsing the request. The client-request timestamp is stopped when the last IIS send completion occurs. Time taken does not reflect time across the network. The first request to the site shows a slightly longer time taken than other similar requests because HTTP.sys opens the log file with the first request.



本文转自 苏繁 51CTO博客,原文链接:http://blog.51cto.com/goxia/224771,如需转载请自行联系原作者
相关实践学习
日志服务之使用Nginx模式采集日志
本文介绍如何通过日志服务控制台创建Nginx模式的Logtail配置快速采集Nginx日志并进行多维度分析。
目录
相关文章
|
监控 Windows 缓存
W3C Extended Log File Format (IIS 6.0)
The W3C Extended log file format is the default log file format for IIS.
809 0
|
5月前
|
网络协议
windows_server2012搭建iis并配置http重定向 iis转发
windows_server2012搭建iis并配置http重定向 iis转发
321 1
|
3月前
|
开发框架 .NET 中间件
【Azure 云服务】在Cloud Service的代码中如何修改IIS Application Pool的配置呢? 比如IdleTimeout, startMode, Recycling.PeriodicRestart.Time等
【Azure 云服务】在Cloud Service的代码中如何修改IIS Application Pool的配置呢? 比如IdleTimeout, startMode, Recycling.PeriodicRestart.Time等
【Azure 云服务】在Cloud Service的代码中如何修改IIS Application Pool的配置呢? 比如IdleTimeout, startMode, Recycling.PeriodicRestart.Time等
|
3月前
|
C++
【Azure云服务 Cloud Service】如何在部署云服务Cloud Service时候通过启动任务Start Task来配置IIS (如开启ARR)
【Azure云服务 Cloud Service】如何在部署云服务Cloud Service时候通过启动任务Start Task来配置IIS (如开启ARR)
|
5月前
|
Windows
iis配置http重定向302转发get请求并去掉最后的斜杠/ iis重定向 iis去除url最后的斜杠 iis重定向链接斜杠(已解决)
iis配置http重定向302转发get请求并去掉最后的斜杠/ iis重定向 iis去除url最后的斜杠 iis重定向链接斜杠(已解决)
174 0
|
6月前
|
JavaScript Windows
VUE部署到IIS中报404错误解决方案-配置URL重写
VUE部署到IIS中报404错误解决方案-配置URL重写
293 0
|
11月前
|
Windows
IIS配置MIME类型
IIS配置MIME类型
|
开发框架 .NET Shell
安装与配置IIS
安装与配置IIS
259 0
安装与配置IIS
|
网络安全
IIS配置FTP
IIS配置FTP过程
286 0
IIS配置FTP
|
Windows
Win10的IIS服务器详细安装与配置
Win10的IIS服务器详细安装与配置
1116 0
Win10的IIS服务器详细安装与配置