是否可以在IIS日志中记录其他HTTP标头?


10

我需要分析Exchange的日志,并希望保存其他标头,例如 MS-ASProtocolVersion

是否可以将IIS配置为记录这些其他标头?

POST /Microsoft-Server-ActiveSync?User=asdf@nasdf.com&DeviceId=ApplDNRJP5Dasdf&DeviceType=iPhone&Cmd=Sync HTTP/1.1
Host: email.asdf.mobi
X-MS-PolicyKey: 886721299
Accept-Language: en-us
User-Agent: Apple-iPhone5C1/1002.146
Proxy-Connection: keep-alive
Accept: */*
Content-Type: application/vnd.ms-sync.wbxml
Connection: keep-alive
Cookie: NSC_Fydibohf_2010_PXB_wtfswfs=ffffffff098a114045525asdfasdf
Authorization: Basic bWasdfasdfasdfsdfa
Content-Length: 64
MS-ASProtocolVersion: 14.1
Accept-Encoding: gzip, deflate

Answers:



2

您可以在IIS中使用失败的请求跟踪来包括状态代码200。这也会记录成功的请求,并且您可以在“请求详细信息”>“一般请求头”部分中查看所有请求头。


1
这很棒!就不必在盒子上安装其他任何东西而言,这是一个不错的解决方案。
Holf
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.