6 Replies Latest reply on Jan 22, 2019 11:43 PM by jaikiran pai

    Loadbalanced WildFly 8.2.1: no client ip in access.log

    Stephan van Beerschoten Newbie

      How do I configure WildFly so it will put the real client ip address in the access.log file?


      My load balancer sets x-forwarded-for, and calls to request.getRemoteAddr() give me the correct ip address.

      The only thing consistently logging the address of the load balancer instead of the real client ip is my access.log file.


      I have configured WildFly like this:


      <server name="default-server">

                      <ajp-listener name="ajp" socket-binding="ajp"/>

                      <http-listener name="default" socket-binding="http" proxy-address-forwarding="true"/>

                      <host name="default-host" alias="localhost">

                          <location name="/" handler="welcome-content"/>

                          <access-log pattern="common" directory="${jboss.server.log.dir}" prefix="access"/>

                          <filter-ref name="server-header"/>

                          <filter-ref name="x-powered-by-header"/>




      What am I missing?