My Oracle Support Banner

[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 OCTOBER 02, 2023

Applies to:

Oracle Cloud Infrastructure - Load Balancer - Version N/A and later
Information in this document applies to any platform.

Goal

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

Solution

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
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.