WebSphere Liberty HTTP Access Log Recipe
In general, the WebSphere Liberty HTTP access log has a low overhead of less than 1-2%.
- Edit the
httpEndpoint
element in server.xml (or other included XML configuration file that has this element) to add anaccessLogging
element. For example:<httpEndpoint id="defaultHttpEndpoint" host="*" httpPort="9080" httpsPort="9443"> <accessLogging filepath="${server.output.dir}/logs/http_access.log" maxFileSize="100" maxFiles="4" logFormat="%h %u %t "%r" %s %b %D %{R}W %{remote}p %p" /> </httpEndpoint>
- Note: It may be that your
httpEndpoint
element is self-closing (i.e.<httpEndpoint ... />
) in which case you have to remove the/
and add</httpEndpoint>
(see above).
- Note: It may be that your
- A restart is not required and the change will apply as soon as the file is saved.
- Reproduce the problem
- Upload the following files:
logs/http_access*log
logs/messages*log
logs/traces*log
logs/ffdc/*
For background, see WebSphere Liberty HTTP Access Log.