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

IIS logs contain dots instead of logging field value

· 52CE 我爱测

This article provides resolutions for the problem where IIS logs contain ... instead of expected logging field value.

This article helps you resolve the problem where Internet Information Services (IIS) logs contain ... instead of expected logging field value.

Original product version:   Internet Information Services 8.0
Original KB number:   2809913

Symptoms

Assume you have IIS Logging configured to log site traffic using the W3C logging format. When you inspect the IIS logs, you notice that one or more of the logging field values contain three dots (...) instead of the expected value. For example, you may see an IIS log entry similar to the following:

#Software: Microsoft Internet Information Services 7.5
#Version: 1.0
#Date: <DateTime>
#Fields: date time cs-method cs-uri-stem s-port cs-username cs(Cookie) sc-status sc-substatus
<DateTime> GET /time.asp 80 - ... 200 0

In the above example, the cs(Cookie) value is ... instead of the actual cookie value.

Cause

This behavior is by design. The length of each IIS log field value is limited to 4096 bytes (4k). If one of the field values is greater than 4096 bytes, that value will be replaced with the three dots. In the above example, the client's Cookie was larger than 4096 bytes and was therefore replaced with (...).

Workaround

To work around this issue, use one of the following options:

  • Write your own custom logging module that does not have the 4096-byte field limitation.

  • Reduce the size of the request or response header values to be logged so that they are less than 4096 bytes and will therefore not be replaced by the three dots.

More information

Source: Microsoft Learn / IT Pro troubleshooting 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 / IT Pro troubleshooting
适用范围
See source applicability · Source date 12/11/2020
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

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

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