IIS 7日志请求正文 [英] IIS 7 Log Request Body

查看:182
本文介绍了IIS 7日志请求正文的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要记录对IIS发出的请求的请求后有效负载。是否可以使用IIS 7.5中现有的日志记录和高级日志记录模块配置请求后有效负载的日志记录,或者任何人都可以将我引导到任何允许我记录后有效负载的自定义模块。

I need to log the request post payload for requests made to IIS. Is this possible to configure the logging of request post payloads with the existing logging and advanced logging modules within IIS 7.5 or can anybody direct me to any custom modules that will allow me to log the post payload.

推荐答案

根据 https://serverfault.com/,它实际上可以完成a / 90965 ,具有讽刺意味的是回答大卫席尔瓦史密斯在他的回答中所提出的问题,声称无法做到;)

It can actually be done, according to https://serverfault.com/a/90965 , which ironically is an answer to the question that David Silva Smith linked to in his answer here, claiming it can't be done ;)


IIS日志只记录查询字符串和标题信息而不用
任何POST数据。

The IIS logs only record querystring and header information without any POST data.

如果你使用的是IIS7,你可以启用了
状态代码200的失败请求跟踪。这将记录所有数据,您可以选择
要包含的数据类型。

If you're using IIS7, you can enabled Failed Request Tracing for status code 200. That will record all of the data and you can select which type of data to include.

这篇关于IIS 7日志请求正文的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆