ISAPI filter to modify IIS logging

This is a discussion on ISAPI filter to modify IIS logging within the Inetserver forums, part of the Microsoft Tools category; Hi, We're running IIS6 websites behind a load balancing applicance with W3C logging enabled. The issue is that for ...

Go Back   Application Development and Programming > Microsoft Tools > Inetserver

ObjectMix.com

Register FAQ Calendar Mark Forums Read
  #1  
Old 07-04-2008, 12:24 PM
John Davis
 
Microsoft Inet server asp, iis, ftp, smtp and security related discussions
Default 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.

Reply With Quote
  #2  
Old 07-07-2008, 04:25 AM
Daniel Crichton
 
Microsoft Inet server asp, iis, ftp, smtp and security related discussions
Default 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/arc...S-Servers.aspx

--
Dan


Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 03:39 AM.

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
vB Ad Management by =RedTyger=