Forum Discussion
Lyonell_165736
Mar 23, 2017Nimbostratus
IIS doesn't handle the X-Forwarded-For header in the normal IIS logs. The most common solution I've seen is, implementing IIS Advanced Logging. Depending on the version of IIS you are running, this might be an extension you need to install on your IIS servers (through the web platform installer on 2008 and 2008 R2), or it may be available built-in (2012 R2 and 2016, not sure about 2012).
Here's an example of how to configure the logging once you have advanced logging available to you: https://www.iis.net/learn/get-started/whats-new-in-iis-85/enhanced-logging-for-iis85