I'm trying to write a Filter that handles writing a W3C-compliant log file based on a special set of criteria. I have found most of the needed information in GetServerVariables(), but I still need the following things: sc-status: The status code returned by the server on the request (i.e. 200 if the HTTP request was OK) sc-substatus: Substatus code, it's an entry in the current IIS log files and I'd like to keep it sc-win32-status: Appears to always be 0, but I'll keep it if I can. sc-bytes: The number of bytes sent back to the client as the response. time-taken: The amount of time it took IIS internally to process and complete the request. If anyone can help me with the necessary calls to get these values, that would be wonderful. They are values in the normal IIS log files when W3C is selected, so I feel like they must be available. Thanks, Jacob
http://blogs.msdn.com/david.wang/archive/2006/04/15/HOWTO_Get_Field_Data_for_Custom_Logging_with_ISAPI_Filter.aspx -- //David IIS http://blogs.msdn.com/David.Wang This posting is provided "AS IS" with no warranties, and confers no rights. // "Jacob Arthur" <jacobats@community.nospam> wrote in message news:%23P0mJgLYGHA.3684@TK2MSFTNGP05.phx.gbl... > I'm trying to write a Filter that handles writing a W3C-compliant log file > based on a special set of criteria. I have found most of the needed > information in GetServerVariables(), but I still need the following > things: > > sc-status: The status code returned by the server on the request (i.e. 200 > if the HTTP request was OK) > > sc-substatus: Substatus code, it's an entry in the current IIS log files > and I'd like to keep it > > sc-win32-status: Appears to always be 0, but I'll keep it if I can. > > sc-bytes: The number of bytes sent back to the client as the response. > > time-taken: The amount of time it took IIS internally to process and > complete the request. > > If anyone can help me with the necessary calls to get these values, that > would be wonderful. They are values in the normal IIS log files when W3C > is selected, so I feel like they must be available. > > Thanks, > Jacob >