X-Forwarded-For Ip address not visible in apache logs
===

My application is accessible only via https URl (except for some URL's which are http). Before my apache web server there is a physical load balancer which is managed by some other party. The request coming from internet are forwarded from this load balancer onto my web server. All the request contains X-Forwarded-For IP address as well, so as to enable my apache to capture end user IP address.

I have configured my apache access_log and ssl_access_log to capture X-Forwarded-For IP address, using LogFormat:

    LogFormat "%{X-Forwarder-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" 

I have used this LogFormat for both access_log and ssl_access_log. The end user IP address is visible in access_log (i.e. http request) however it is not visible in ssl_access_log (i.e. https request).

Please let me know if I am missing anything.