Wednesday, April 03, 2013

PeopleSoft Weblogic external Client IP Address logging

If you are using PeopleSoft Weblogic Servers and enabled extended logging and added the following fields C-IP and C-DNS and only see your load balancer or reverse proxy server IP address instead of actual client IP, Please do the following changes for PIA to see the real client – ip. Not the WebLogic Plug-in Enabled is required even if you do not use WebLogic plugin.

  • Configure X-Forwarded-For HTTP header on your fron end networking applicance for e.g. F5 BIGIP.
  • Login to weblogic console and perform the following,
    Step 1 : Lock & Edit
    Step 2. Environment -> Servers -> PIA -> Configuration -> General
               Advanced
               Select WebLogic Plug-in Enabled. : Y
  • Step 3 : Environment -> Servers -> PIA -> Protocols  -> HTTP
                Remote Address Override: X-Forwarded-For

    Step 4: Activate Changes and Restart the PIA (WebLogic Server).

    After this you will see the real client ip address. This still does not show correct C-DNS as this is not correctly resolved by GetRemoteHost call.

    Also this does not fix PSACCESSLOG client IP address field which still captures Front end server IP address.

    The following Oracle Resolution may be helpful.

    E-WL: How to Capture the Clients IP Address using a Front-End Proxy with WebLogic Web Server [ID 662708.1]

    How To Get The Actual Client IP when There Is Load Balancer between client and Apache ID 1531012.1]

2 comments:

shiva max said...

Hi im sanjay sap peoplesoft consultant. I just browsing blogs there I found your blog is interesting.. thank for posting… keep on posting peoplesoft-techical

john williams said...

Hi im sanjay sap peoplesoft consultant. I just browsing blogs there I found your blog is interesting.. thank for posting…peoplesoft-techical