Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Fri, 4 Jul 2008 18:24:59 +0100,    group: microsoft.public.inetserver.iis        back       


ISAPI filter to modify IIS logging   
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.
date: Fri, 4 Jul 2008 18:24:59 +0100   author:   John Davis

Re: ISAPI filter to modify IIS logging   
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
date: Mon, 7 Jul 2008 10:25:37 +0100   author:   Daniel Crichton

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us