Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS 7 Log Request Body

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.

like image 606
DMcKenna Avatar asked Aug 19 '10 14:08

DMcKenna


People also ask

How do I enable advanced logging in IIS 7?

In IIS Manager, open the Advanced Logging feature. Click the server in the Connections pane, and then double-click the Advanced Logging icon on the Home page. Enable the Advanced Logging feature. In the Actions pane, click Enable Advanced Logging.

Where are IIS logs stored?

IIS log files are stored by default in the %SystemDrive%\inetpub\logs\LogFiles folder of your IIS server. The folder is configured in the Directory property on the Logging page for either the server or an individual site.


1 Answers

It can actually be done, according to https://serverfault.com/a/90965

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

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.

like image 191
Evgeniy Berezovsky Avatar answered Sep 30 '22 15:09

Evgeniy Berezovsky