+

Search Tips   |   Advanced Search

HTTP access logging

We can configure access log settings for HTTP endpoints.


Parent topic: Monitoring the Liberty profile


HTTP access log settings

An HTTP access log contains a record of all inbound client requests handled by HTTP endpoints. We can enable access logging in the HTTP server, or we can enable it in the Liberty profile server in two modes: one log common to multiple endpoints, or one log for each endpoint.

If we do not specify attributes, the defaults are used. To see a list of the default attributes, see httpAccessLogging in the list of liberty configuration elements: Configuration elements in server.xml.


HTTP access log format

For a list of the available log format properties and their descriptions, see the accessLogFormat configuration for the full This log format string is specified using the logFormat attribute of httpAcccessLogging or accessLogging elements in server.xml:

or

<httpEndpoint id="defaultHttpEndpoint">
  <accessLogging filepath="${server.output.dir}/logs/http_defaultEndpoint_access.log"
                         logFormat="%h %i %u %t &quot;%r&quot; %s %b" />
 </httpEndpoint>