大网数据广告活动
Web服务器与PHP

IIS Logging

· 52CE 我爱测

IIS logging is one type of server side logging that can be enabled on a URL group.

IIS logging is one type of server side logging that can be enabled on a URL group. The IIS log file format is a fixed ASCII text-based format that cannot be customized. The IIS log file contains the HTTP Server API kernel-mode cache hits. This type of logging can be enabled on a URL group only; it cannot be used on the server session.

The IIS log file format records the following data. The data in the table is in the order of occurrence in the log file.

Field Description
Client IP address The IP address of the client that made the request.
User name The name of the authenticated user that accessed the server. Anonymous users are indicated by a hyphen. The best practice is for the application always to provide the user name.
Date The date on which the activity occurred.
Time The local time at which the activity occurred.
Service and instance The Internet service name and instance number that was running on the client.
Server name The name of the server on which the log file entry was generated.
Server IP address The IP address of the server on which the log file entry was generated.
Time taken The length of time that the action took, in milliseconds.
Client bytes sent The number of bytes sent by the client.
Server bytes sent The number of bytes sent by the server.
Service status code A value of 200 indicates that the request was fulfilled successfully.
Windows status code A value of 0 (zero) indicates that the request was fulfilled successfully.
Request type The request verb.
Target of operation The target of the verb, for example, Default.htm.
Parameters The parameters that are passed to a script.

Not all fields will contain information. For fields for which there is no information, a hyphen (-) appears as a placeholder. If a field contains a nonprintable character, the HTTP Server API 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 commas, making the format easier to read than the other ASCII formats, which use spaces for separators. The time is recorded as local time. The time taken is recorded in milliseconds. For more information about the time taken field, see the W3C Logging topic.

The following example shows an NCSA Common log file entry.

192.168.114.201, -, 03/20/05, 7:55:20, W3SVC2, SERVER, 
172.21.13.45, 4502, 163, 3223, 200, 0, GET, /DeptLogo.gif, -,

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。