graylog-labs / apache-mod_log_gelf

Apache2 module for writing access logs to Graylog
Apache License 2.0
31 stars 11 forks source link

Load Balancer #20

Open nanoak opened 2 years ago

nanoak commented 2 years ago

My apache servers are behind a load balancer (AWS ElasticLoadBalancer), and mod_log_gelf is only sending load balancer local IP, instead of the client remote IP. Is there any configuration for this?

Aethalides commented 2 years ago

if your LB stores the client remote in X-Forwarded-For header, you can extract it as a header field, as shown in the doc