Logging Custom Headers in IIS 7.5 - Cannot find Advanced Logging Module

628 views Asked by At

I wish to log a custom header in IIS logs for an application.

On my local machine (Windows 10, IIS 10.0) this is relatively easy:

enter image description here

On the target machine (Windows Server 2008 R2, IIS 7.5), however the option to add your own fields is not available (Apparently this is only available in IIS 8.5 and above).

I have read instead that you can achieve this same aim by using a module in IIS called Advanced Logging.

I cannot find this option though. In tutorials it appears to the left of the Authentication module in the IIS section (where the arrow below is pointing to).

enter image description here

Where can I find this? Is there somewhere that I need to install it. I had a look in the "Turn Windows Features On/Off" section but I couldn't find it there.

1

There are 1 answers

0
Xudong Peng On BEST ANSWER

Plese try to use the Web Platform Installer to download the installer for this module, something like this:

enter image description here

Just download this via link:

enter image description here

Finally you will get this installer,: enter image description here

Unfortunately I don't have such an environment to test with, so you'll need to try copying it to the target machine to see if you can install it. If that doesn't fix the issue either, I think you'll have to follow the official recommendation to use Enhanced Logging for IIS 8.5 or later versions.