There's an Tomcat server where we are attempting to log the HTTP version that the fact is sent with. We have seen a couple of occasions it appears to become HTTP/.9, which kills this content (not supported I suppose?). We wish to acquire some stats about this using the access sign in apache. However, because the header line with this is not prefixed by anything, we can't make use of the %o logging.

It is possible to method of getting this?

A good example:

Fact is:

HTTP/1.1 503 This application is not currently available
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=utf-8
Content-Length: 1090
Date: Wed, 12 May 2010 12:53:16 GMT
Connection: close 

And we want the issue HTTP/1.1 (alternatively, HTTP/1.1 503 This application isn't presently available.

Is possible? We all do not need the applying being offered, so we have to do that either like a Java filter, or perhaps in the tomcat access log - Ideally within the access log.

Enabling the <Valve className="org.apache.catalina.valves.RequestDumperValve"/> in server.xml creates the request and response headers for every request.

Example:

19-May-2010 12:26:18 org.apache.catalina.valves.RequestDumperValve invoke
INFO:           protocol=HTTP/1.1