I have the following stack: Ngnix -> API Gateway -> Lambda (Integration Type)
On the Nginx configuration file, I am using the following directive: proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
When I'm checking logs,
X-Forwarded-For headerMy question: How can I add to API Gateway Logs the X-Forwarded-For header with its value, or even better, replace sourceIP value with the one we are forwarding.