cancel
Showing results for 
Search instead for 
Did you mean: 

Web Dispatcher IP adress in CLF logs

Former Member
0 Kudos

Hi All,

I have done the setup to get the http log files of my portal in CLF. I want to do reporting on these logs. We have a webDispatcher installed pointing to 3 portal nodes. When I get the clf file under :

/usr/sap/Exx/JCxx/j2ee/cluster/serverx/log/system/httpaccess/

The IP adress of the requestor is the webdispatcher IP. Is there a way to have, in these logs, the IP adress of the machine of the requestor instead of the WebDispatcher IP?

Regards,

Renaud-Pierre Landry

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Renaud-Pierre,

Check this parameter

wdisp/add_xforwardedfor_header

The parameter determines whether SAP Web Dispatcher includes the IP address of the client in the header field x-forwarded-for. If it does, the application on the application server can read the route that the request has taken. If the parameter has the value false, Web Dispatcher leaves the header field unchanged.

When the backend is ABAP stack you can them cutomize the http logs to include the header field x-forwardedfor . For Java stack, you'll have to check how to do it.

But, I think the best place to look for HTTP logs is on the Web Dispatcher...

Regards,

Olivier

Answers (3)

Answers (3)

Former Member
0 Kudos

We have not fixed our inital problem but will be using a workaround solution

Former Member
0 Kudos

Hi,

The parameter wdisp/add_xforwardedfor_header does not seem to be doing anything interesting. We have loaded it and still get the web dispatcher IP adress in the node logs.

Although, we have configured the webDispatcher log and we are thinking of using these logs instead.

Thanks a log for your help!

Renaud-Pierre

Former Member
0 Kudos

Hi,

The parameter wdisp/add_xforwardedfor_header by itself does not auto magically change the IP adresse in the logs.

You need to change the line defining the log format in the J2EE server to be able to display the header field xforwardedfor

Adding {xforwardedfor]i%

Regards,

Olivier

Former Member
0 Kudos

Hi,

Thanks for your answer. I will investigate right away that parameter.

Where are the web dispatcher http logs?

Thanks

Renaud

Former Member
0 Kudos

Hi again,

>Where are the web dispatcher http logs?

Where you have configured them if you have configured them !

Check :

icm/HTTP/logging_xxx in the sapwebdisp.pfl configuration file.

Regards,

Olivier