I am using Cloudflare and Google cloud backend bucket,
I check the RemoteIp in the Stackdriver log it is for Cloudflare and not for the original visitor IP.
Is there any way to retrieve the original visitor IP in Stackdriver logs?
I am using Cloudflare and Google cloud backend bucket,
I check the RemoteIp in the Stackdriver log it is for Cloudflare and not for the original visitor IP.
Is there any way to retrieve the original visitor IP in Stackdriver logs?
The solution is to turn off the orange cloud next to the subdomain, so the Proxy status will be DNS only.
After applying this solution I get the original visitor Ip in the X-Forwarded-For header.
For more info check:
https://developers.cloudflare.com/load-balancing/understand-basics/proxy-modes#dns-only-mode