1

I enabled acces logging in Wildfly clustered environment on the nodes using their profile with the help of this description, but it doesn't provide me any information regarding the IP of the requestor, because the IP is always the IP of the master server.

Is it possible to extract the IP of the machine, from where the request came?

László Halász
  • 428
  • 5
  • 24

1 Answers1

1

Add %{i,X-Forwarded-For} as part of your log statement. This is a standard HTTP header (originally from Apache mod_proxy) that should be added to each request.

stdunbar
  • 16,263
  • 11
  • 31
  • 53
  • I added it to the log pattern, and added `proxy-address-forwarding="true"` to the http listener, but `X-Forwarded-For` was not added to the request parameters. If I add it to the request manually, then I see it in the log, but a normal request doesn't contain it. What can be the problem? – László Halász Aug 30 '17 at 11:27