User983087641 postedI have a few servers still running Windows 2008 R2 & IIS 7.5, & I need to add the x-forwarded-for field to my IIS logs. PowerShell's "Add-webConfigurationProperty" cmdlet added the field to my 2012 & 2019 servers, but I still do not have x-forwarded-for on my 2008 servers. I did not get an error when I ran the cmdlet on my older servers, but the applicationHost.config was not updated.
I also checked Configuration Editor - I navigated to system.applicationHost/Sites/SiteDefaults/Logfile, but the section for "CustomFields" is not present. I found multiple Microsoft documents that suggested installing Advanced Logging for IIS, but all the links for downloading the extension resulted in a 404 error.
What do I need to do to enable logging x-forwarded-for on Windows 2008 R2 / IIS 7.5?