[OCI BM LBaaS] How to Log Client IP to WebLogic Managed Server and Oracle HTTP Server Access Log from OCI Load Balancer instance?
(Doc ID 2450407.1)
Last updated on SEPTEMBER 26, 2019
Applies to:Oracle Cloud Infrastructure - Version N/A to N/A [Release 1.0]
Information in this document applies to any platform.
How to log the client IP to WebLogic Managed Server and Oracle HTTP Server(OHS) server access log from a Load Balancer (LB) instance?
A use case is in a web service environment which is accessed by multiple clients and the need to correlate the client request with the server logs. Using the X-Headers, a client can create a random ID and pass it to the server. The server will include that ID in every log statement that it creates. In the event a client receives an error, it can include the ID in its bug report allowing the server operator to cross reference to the corresponding log statements without relying on timestamps, IPs, etc.
The directions outlined in this article is specifically for use with Oracle WebLogic Managed Server and Oracle HTTP Server. The topology is as below:
Clients(web browsers) --> Oracle Cloud Load balancer --> Oracle OHS Reverse Proxy --> WebLogic application
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document