In cases where TYK Gateway is behind a Proxy server like Elastic load balancer (AWS), the origin ip shown in the logs are of the proxy’s rather than the actual client IP.
Can we have X-Forwarded-For printed in the logs? This would help track the actual client ip address. HTTP headers and Classic Load Balancers - Elastic Load Balancing.
Preferably on both Dashboard and Gateway application.
The analytics record doesn’t seem to store the X-Forwarded-For in the IP, but the load balancer IP only, but the logs have user_ip=“Originated_IP,LB_IP” ( in case of handler_error.go)
Please validate and Provide a fix this - on both handler success and handler error.