How do I print the x-forwared-for value in apache?

view story

http://serverfault.com – We have a aws load balancer. The load balancer uses the TCP connections 443 to encrypt the data. Since the load balancer encrypts the IP of the client, in our apache log file we can see only the IP of the load balancer rather then the client. Even though we have used %{X-Forwarded-For}i in our log format. Is there any way to handle this issue? (HowTos)