Hi, We're running IIS6 websites behind a load balancing applicance with W3C logging enabled. The issue is that for every request logged it displays the load balancers ip address as the client-ip therefore making it impossible to determine the source of the request from the logs. The load balancer does however add the original ip address to an X-Header in the http header. What we'd like to do is to be able to take this X-Header value and insert it into the IIS logfiles as the c-ip value. Does anyone know if this is possible perhaps using an ISAPI filter? Thanks - J.
John wrote on Fri, 4 Jul 2008 18:24:59 +0100: > Hi, > We're running IIS6 websites behind a load balancing applicance with W3C > logging enabled. The issue is that for every request logged it displays > the load balancers ip address as the client-ip therefore making it > impossible to determine the source of the request from the logs. The > load balancer does however add the original ip address to an X-Header > in the http header. What we'd like to do is to be able to take this > X-Header value and insert it into the IIS logfiles as the c-ip value. > Does anyone know if this is possible perhaps using an ISAPI filter? > Thanks - J. David Wang has an ISAPI that can do this, and has a configurable setting for the header to use: http://blogs.msdn.com/david.wang/archive/2005/09/28/HOWTO-ISAPI-Filter-which-Logs-original-Client-IP-for-Load-Balanced-IIS-Servers.aspx -- Dan