WebSphere HTTP Server - http access log extention capabilities

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere HTTP Server > June 2005 > http access log extention capabilities





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author http access log extention capabilities
Joseph Marques

2005-06-15, 6:16 pm

Question: It is possible to add additional values to the http access
log? I want to be able to pull specific values out of the request
object, such as customer identifiers or order numbers, and put them in
the log file too. Weblogic has a way of doing this (scroll down to
'creating custom field identifiers'):
http://e-docs.bea.com/wls/docs61/ad...er.html#113868. So
I'm wondering if WebSphere has an equivalent.

From my research so far, there seems to be no easy way to add
information into the http access log using built in features. I know
that IBM HTTP Server is only a light-weight wrapper around Apache.
Therefore, I first searched the Apache documentation that describes the
available configurable features pertaining to logging, in particular the
access log files:

http://httpd.apache.org/docs-2.0/logs.html#accesslog

IBM has republished this documentation, adding their minor extensions,
in an official publication that can be found at:
http://www.redbooks.ibm.com/abstrac...5132.html?Open. Again, these
encompass options relating only to the configurability of the logging
format.

Short of writing a web server plug-in which mimics the functionality
provided by Weblogic, there seems to be no WebSphere equivalent to
Weblogic’s custom field identifiers, which leverage ELF (extending
logging format). WebSphere does provide an option to use ELF as the
format for logging, but no documentation was found which claims
extensibility in that realm.

Any and all help is greatly appreciated.

-joe
Ben_

2005-06-15, 6:16 pm

> I want to be able to pull specific values out of the request
> object, such as customer identifiers or order numbers, and put them in
> the log file too.

You want to pull the info from the Query string (like
http://host/myservlet?custid=123&ordernb=456) and have it in the access.log
file ?

If so, I don't think Apache / IBM HTTP Server has this feature. You can log
the Query string
(http://httpd.apache.org/docs-2.0/mo...ig.html#formats), but not
split it (AFAIK).

Alternatively, you could have a servlet filter log this information in a
file of its own with all other info, mimicking the web server log file
layout.


Joseph Marques

2005-06-15, 6:16 pm

Well, the information I'm looking to log isn't available in the query
string. It's in the request scope, but not the url for the page.

-joe

Ben_ wrote:
>
> You want to pull the info from the Query string (like
> http://host/myservlet?custid=123&ordernb=456) and have it in the access.log
> file ?
>
> If so, I don't think Apache / IBM HTTP Server has this feature. You can log
> the Query string
> (http://httpd.apache.org/docs-2.0/mo...ig.html#formats), but not
> split it (AFAIK).
>
> Alternatively, you could have a servlet filter log this information in a
> file of its own with all other info, mimicking the web server log file
> layout.
>
>

Ray McVay

2005-06-16, 2:53 am

Joseph Marques wrote:
> Well, the information I'm looking to log isn't available in the query
> string. It's in the request scope, but not the url for the page.


Then Apache will never see it. You'll have to do your logging from
within your app for that.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com