 |
|
 |
|
Next: IIS doesn't generate LOGS
|
| Author |
Message |
External

Since: Jul 28, 2004 Posts: 13
|
(Msg. 1) Posted: Thu Jun 07, 2007 9:50 am
Post subject: logging all HTTP requests Archived from groups: microsoft>public>inetserver>iis, others (more info?)
|
|
|
Hi,
I am wondering if there is any way to log the HTTP traffic on an IIS server
(including headers but preferably the body as well), either at the IIS or
asp.net level
I know I could write my own isapi dll or .net filter, but I was rather
hoping someone else has already done it. I'm sure it's quite a common
requirement
Andy >> Stay informed about: logging all HTTP requests |
|
| Back to top |
|
 |  |
External

Since: Jun 07, 2007 Posts: 1
|
(Msg. 2) Posted: Thu Jun 07, 2007 9:50 am
Post subject: Re: logging all HTTP requests [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Jun 7, 10:50 am, "Andy Fish" <ajf....TakeThisOut@blueyonder.co.uk> wrote:
> Hi,
>
> I am wondering if there is any way to log the HTTP traffic on an IIS server
> (including headers
What about IIS log? >> Stay informed about: logging all HTTP requests |
|
| Back to top |
|
 |  |
External

Since: Jun 07, 2007 Posts: 3
|
(Msg. 3) Posted: Thu Jun 07, 2007 10:04 am
Post subject: Re: logging all HTTP requests [Login to view extended thread Info.] Archived from groups: microsoft>public>dotnet>framework>aspnet, others (more info?)
|
|
|
Hello Andy,
I think that you need to implement HttpModule which will just log all request
to the desired location
Start from here http://www.15seconds.com/issue/020417.htm
---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
AF> Hi,
AF>
AF> I am wondering if there is any way to log the HTTP traffic on an IIS
AF> server (including headers but preferably the body as well), either
AF> at the IIS or asp.net level
AF>
AF> I know I could write my own isapi dll or .net filter, but I was
AF> rather hoping someone else has already done it. I'm sure it's quite
AF> a common requirement
AF>
AF> Andy
AF> >> Stay informed about: logging all HTTP requests |
|
| Back to top |
|
 |  |
External

Since: Jun 07, 2007 Posts: 3
|
(Msg. 4) Posted: Thu Jun 07, 2007 10:05 am
Post subject: Re: logging all HTTP requests [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: Oct 14, 2005 Posts: 39
|
(Msg. 5) Posted: Thu Jun 07, 2007 10:36 am
Post subject: Re: logging all HTTP requests [Login to view extended thread Info.] Archived from groups: microsoft>public>inetserver>iis, others (more info?)
|
|
|
Andy Fish wrote:
> I am wondering if there is any way to log the HTTP traffic on an IIS
> server (including headers but preferably the body as well), either at
> the IIS or asp.net level
>
> I know I could write my own isapi dll or .net filter, but I was rather
> hoping someone else has already done it. I'm sure it's quite a common
> requirement
Wireshark (formerly Ethereal)?
Andrew >> Stay informed about: logging all HTTP requests |
|
| Back to top |
|
 |  |
External

Since: Jul 28, 2004 Posts: 13
|
(Msg. 6) Posted: Thu Jun 07, 2007 10:39 am
Post subject: Re: logging all HTTP requests [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"Alexey Smirnov" <alexey.smirnov RemoveThis @gmail.com> wrote in message
news:1181207364.003923.258590@p77g2000hsh.googlegroups.com...
> On Jun 7, 10:50 am, "Andy Fish" <ajf... RemoveThis @blueyonder.co.uk> wrote:
>> Hi,
>>
>> I am wondering if there is any way to log the HTTP traffic on an IIS
>> server
>> (including headers
>
> What about IIS log?
>
do you mean the standard log file which appears automatically in the
windows/system32 (WTF !?!) directory?. Yes, this logs some information but I
need access to at lest all the HTTP headers in both directions and
preferably the body too >> Stay informed about: logging all HTTP requests |
|
| Back to top |
|
 |  |
External

Since: Aug 23, 2003 Posts: 2901
|
(Msg. 7) Posted: Thu Jun 07, 2007 9:13 pm
Post subject: Re: logging all HTTP requests [Login to view extended thread Info.] Archived from groups: microsoft>public>dotnet>framework>aspnet, others (more info?)
|
|
|
HTTPModule is only invoked once request is handed off to ASP.NET ISAPI
extension:
http.sys -> IIS pipeline -> determine extension -> ASP.NET ISAPI
extension -> ASP.NET pipeline
Requests for static files, for example, are handled by IIS Static file
handler, not ASP.NET, so HTTPModule would never be invoked (unless you map
all file extensions to ASP.NET)
ISAPI filter (or lower level tool, e.g. a packet capture tool) is probably
the only way.
Cheers
Ken
--
My IIS Blog: www.adOpenStatic.com/cs/blogs/ken
"Michael Nemtsev" <nemtsev DeleteThis @msn.com> wrote in message
news:a279a63a3f646f8c97723d97cb3f6@msnews.microsoft.com...
> Hello Andy,
>
> I think that you need to implement HttpModule which will just log all
> request to the desired location
> Start from here http://www.15seconds.com/issue/020417.htm
>
>
> ---
> WBR, Michael Nemtsev [.NET/C# MVP]. My blog:
> http://spaces.live.com/laflour
> Team blog: http://devkids.blogspot.com/
>
> "The greatest danger for most of us is not that our aim is too high and we
> miss it, but that it is too low and we reach it" (c) Michelangelo
>
> AF> Hi,
> AF> AF> I am wondering if there is any way to log the HTTP traffic on an
> IIS
> AF> server (including headers but preferably the body as well), either
> AF> at the IIS or asp.net level
> AF> AF> I know I could write my own isapi dll or .net filter, but I was
> AF> rather hoping someone else has already done it. I'm sure it's quite
> AF> a common requirement
> AF> AF> Andy
> AF>
> >> Stay informed about: logging all HTTP requests |
|
| Back to top |
|
 |  |
External

Since: Jun 07, 2007 Posts: 3
|
(Msg. 8) Posted: Thu Jun 07, 2007 9:13 pm
Post subject: Re: logging all HTTP requests [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Hello Ken,
hmmm..
What about IIS7? The same ISAPI stuff?
---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
KS> HTTPModule is only invoked once request is handed off to ASP.NET
KS> ISAPI extension:
KS>
KS> http.sys -> IIS pipeline -> determine extension -> ASP.NET ISAPI
KS> extension -> ASP.NET pipeline
KS>
KS> Requests for static files, for example, are handled by IIS Static
KS> file handler, not ASP.NET, so HTTPModule would never be invoked
KS> (unless you map all file extensions to ASP.NET)
KS>
KS> ISAPI filter (or lower level tool, e.g. a packet capture tool) is
KS> probably the only way.
KS>
KS> Cheers
KS> Ken
KS> "Michael Nemtsev" <nemtsev.TakeThisOut@msn.com> wrote in message
KS> news:a279a63a3f646f8c97723d97cb3f6@msnews.microsoft.com...
KS>
>> Hello Andy,
>>
>> I think that you need to implement HttpModule which will just log all
>> request to the desired location
>> Start from here http://www.15seconds.com/issue/020417.htm
>> ---
>> WBR, Michael Nemtsev [.NET/C# MVP]. My blog:
>> http://spaces.live.com/laflour
>> Team blog: http://devkids.blogspot.com/
>> "The greatest danger for most of us is not that our aim is too high
>> and we miss it, but that it is too low and we reach it" (c)
>> Michelangelo
>>
>> AF> Hi,
>> AF> AF> I am wondering if there is any way to log the HTTP traffic on
>> an
>> IIS
>> AF> server (including headers but preferably the body as well),
>> either
>> AF> at the IIS or asp.net level
>> AF> AF> I know I could write my own isapi dll or .net filter, but I
>> was
>> AF> rather hoping someone else has already done it. I'm sure it's
>> quite
>> AF> a common requirement
>> AF> AF> Andy
>> AF> >> Stay informed about: logging all HTTP requests |
|
| Back to top |
|
 |  |
External

Since: Jul 28, 2004 Posts: 13
|
(Msg. 9) Posted: Thu Jun 07, 2007 9:13 pm
Post subject: Re: logging all HTTP requests [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Thanks for all the replies
I have read up a bit about the asp.net pipeline and, as I am currently only
interested in asp.net requests, I think IHttpModule will do it for me.
I was just hoping that someone had already invented this so I wouldn't have
to write it myself, but it doesn't look like it's available off the shelf. I
would think it's a common requirement.
I have previously tried ethereal and the other obvious alternative which is
a proxy with logging. these are just a bit more cumbersome to use than
having logging built into the web server.
Andy
"Ken Schaefer" <kenREMOVE RemoveThis @THISadOpenStatic.com> wrote in message
news:eeQcvTPqHHA.4004@TK2MSFTNGP05.phx.gbl...
> HTTPModule is only invoked once request is handed off to ASP.NET ISAPI
> extension:
>
> http.sys -> IIS pipeline -> determine extension -> ASP.NET ISAPI
> extension -> ASP.NET pipeline
>
> Requests for static files, for example, are handled by IIS Static file
> handler, not ASP.NET, so HTTPModule would never be invoked (unless you map
> all file extensions to ASP.NET)
>
> ISAPI filter (or lower level tool, e.g. a packet capture tool) is probably
> the only way.
>
> Cheers
> Ken
>
>
> --
> My IIS Blog: www.adOpenStatic.com/cs/blogs/ken
>
>
> "Michael Nemtsev" <nemtsev RemoveThis @msn.com> wrote in message
> news:a279a63a3f646f8c97723d97cb3f6@msnews.microsoft.com...
>> Hello Andy,
>>
>> I think that you need to implement HttpModule which will just log all
>> request to the desired location
>> Start from here http://www.15seconds.com/issue/020417.htm
>>
>>
>> ---
>> WBR, Michael Nemtsev [.NET/C# MVP]. My blog:
>> http://spaces.live.com/laflour
>> Team blog: http://devkids.blogspot.com/
>>
>> "The greatest danger for most of us is not that our aim is too high and
>> we miss it, but that it is too low and we reach it" (c) Michelangelo
>>
>> AF> Hi,
>> AF> AF> I am wondering if there is any way to log the HTTP traffic on an
>> IIS
>> AF> server (including headers but preferably the body as well), either
>> AF> at the IIS or asp.net level
>> AF> AF> I know I could write my own isapi dll or .net filter, but I was
>> AF> rather hoping someone else has already done it. I'm sure it's quite
>> AF> a common requirement
>> AF> AF> Andy
>> AF>
>>
> >> Stay informed about: logging all HTTP requests |
|
| Back to top |
|
 |  |
External

Since: Nov 01, 2007 Posts: 309
|
(Msg. 10) Posted: Thu Jun 07, 2007 9:13 pm
Post subject: Re: logging all HTTP requests [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Products like TeaLeaf do what was originally asked and exist.
If you are looking for a free solution, I don't know of any.
For the theoretically inclined:
IIS6 Request Processing Details:
http://blogs.msdn.com/david.wang/archive/2005/10/14/HOWTO_IIS_6_Reques...rocessi
IIS6 solutions involve any combination of the following techniques:
- How to read request entity body -
http://blogs.msdn.com/david.wang/archive/2006/05/10/HOWTO-Access-POST-...m-data-
- ISAPI Filter reading ALL_RAW ServerVariable after
SF_NOTIFY_AUTH_COMPLETE event to retrieve effective request headers
- ISAPI Filter listening to SF_NOTIFY_SEND_RAW_DATA to capture
response stream. Kills performance by disabling platform advantages
like TransmitFile for StaticFiles and kernel response cache for
Dynamic Files.
IIS7 solutions
- Existing IIS6 solution works with same caveats
- Native code Module listening on READ_ENTITY and SEND_ENTITY to
buffer
- Existing HttpModule and HttpHandler techniques can be applied to any/
all resources on a per-app basis (CANNOT configure one codebase to run
globally for any/all requests - read this for why -
http://blogs.msdn.com/david.wang/archive/2005/09/13/Why-Global-Managed...dules-a
)
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
On Jun 7, 4:25 am, Michael Nemtsev <nemt....DeleteThis@msn.com> wrote:
> Hello Ken,
>
> hmmm..
> What about IIS7? The same ISAPI stuff?
>
> ---
> WBR, Michael Nemtsev [.NET/C# MVP].
> My blog:http://spaces.live.com/laflour
> Team blog:http://devkids.blogspot.com/
>
> "The greatest danger for most of us is not that our aim is too high and we
> miss it, but that it is too low and we reach it" (c) Michelangelo
>
> KS> HTTPModule is only invoked once request is handed off to ASP.NET
> KS> ISAPI extension:
> KS>
> KS> http.sys -> IIS pipeline -> determine extension -> ASP.NET ISAPI
> KS> extension -> ASP.NET pipeline
> KS>
> KS> Requests for static files, for example, are handled by IIS Static
> KS> file handler, not ASP.NET, so HTTPModule would never be invoked
> KS> (unless you map all file extensions to ASP.NET)
> KS>
> KS> ISAPI filter (or lower level tool, e.g. a packet capture tool) is
> KS> probably the only way.
> KS>
> KS> Cheers
> KS> Ken
> KS> "Michael Nemtsev" <nemt....DeleteThis@msn.com> wrote in message
> KS>news:a279a63a3f646f8c97723d97cb3f6@msnews.microsoft.com...
> KS>
>
>
>
> >> Hello Andy,
>
> >> I think that you need to implement HttpModule which will just log all
> >> request to the desired location
> >> Start from herehttp://www.15seconds.com/issue/020417.htm
> >> ---
> >> WBR, Michael Nemtsev [.NET/C# MVP]. My blog:
> >>http://spaces.live.com/laflour
> >> Team blog:http://devkids.blogspot.com/
> >> "The greatest danger for most of us is not that our aim is too high
> >> and we miss it, but that it is too low and we reach it" (c)
> >> Michelangelo
>
> >> AF> Hi,
> >> AF> AF> I am wondering if there is any way to log the HTTP traffic on
> >> an
> >> IIS
> >> AF> server (including headers but preferably the body as well),
> >> either
> >> AF> at the IIS or asp.net level
> >> AF> AF> I know I could write my own isapi dll or .net filter, but I
> >> was
> >> AF> rather hoping someone else has already done it. I'm sure it's
> >> quite
> >> AF> a common requirement
> >> AF> AF> Andy
> >> AF>- Hide quoted text -
>
> - Show quoted text - >> Stay informed about: logging all HTTP requests |
|
| Back to top |
|
 |  |
| Related Topics: | Re3: HTTP 405 when using POST requests - POST requests are finally working. I've disabled write access for all the web site's properties. I've also checked MIME global settings. I found out I have .php and .phtml files associated as text/html. After I removed those associations, POST reques...
HTTP 405 when using POST requests - Hello, My server is: Windows 2000 Advanced, SP4 IIS 5 PHP 4.3.4 installed as an CGI extension I'm getting HTTP 405 "Resource not allowed" error when using a form with a "POST" method. "GET" method works well, ...
Virtual Directory and HTTP put requests - I have an application which has previously copied files to an IIS5 Virtual Directory using http put requests. I recently upgraded the web server to Win 2003 & IIS6. I noticed that our application was no longer able to put files on to our now IIS6....
IIS responding with HTTP 500 Error to Web Service requests - I recently had a problem consuming a web service using a java applet (or any other client side consumer). The web service worked correctly however the response could not seem to get from the server to client. The reason for this was my web services were....
HTTP Requests Blocked for non admin users - Hi, we have an application that is HTTP based hosted on a Windows 2003 Server (SP1) with IIS 6.0 which has been working fine to date. Authentication to the websites has been using Windows Integrated security and basic authentication. All of a sudden we... |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
 |
|
|