yokawasa / mod_log_slow

Apache module for logging of slow requests handling
http://code.google.com/p/modlogslow/
Apache License 2.0
16 stars 2 forks source link

How to user forwarder IP by a load balancer? #3

Open danieleratti opened 9 years ago

danieleratti commented 9 years ago

Using Amazon ELB, In the log I can just see the IP of my own machine. Ho can I customize the IP format using the Forwarded-IP instead of the real IP?

yokawasa commented 8 years ago

@DanieleRatti Apologies for getting to this late. I haven't test it but if ELB support the X-Forwarded-For, the article below would be an answer. http://www.techstacks.com/howto/log-client-ip-and-xforwardedfor-ip-in-apache.html