Forum Discussion
Chris_Miller
Jun 09, 2011Altostratus
PeopleSoft Access Logging (PSACCESSLOG) Showing IP Address of LTM
Hey guys, Long story short, fronting PeopleSoft with LTM using SNAT and PSACCESSLOG shows the SNAT IP. I'm wondering how to tell PS to derive IP from X-Forwarded-For or WL-Proxy-IP.
hooleylist
Jun 10, 2011Cirrostratus
Hi Chris,
Maybe here:
http://middlewaremagic.com/weblogic/?p=6466
To get the value of X-forwarded-for (i.e. The IP address of the client.) you just have to do the two following things from the console
Console Path:
First
AdminConsole —> Servers —-> [Your_Server_Name] —> Configuration [Tab] —> General [Sub-Tab] —>
- Click on “Advanced” Link
- Check the CheckBox in this Page “WebLogic Plug-In Enabled”
“WL-Proxy-Client-IP”
Second
Servers –> [YOUR_SERVER_NAME] —> Logging [Tab] —> HTTP [sub-tab]
- Click on Advanced Link at the bottom of the page
- In the “Extended Logging Format Fields:” Just add the c-ip at the beginning or at the end of the values and save it.
Suppose if you have given c-ip at the beginning then the output in the access.log would be something like this
Example:
10.10.10.10 – - [26/Apr/2011:16:36:14 +0530] “GET /SimpleWebApp/ HTTP/1.1″ 200 119
10.10.10.10 – - [26/Apr/2011:16:36:14 +0530] “GET /favicon.ico HTTP/1.1″ 404 1214
Where “10.10.10.10″ is the client IP.
Regards,
Ravish Mody
Aaron
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects