Kong realip_remote_addr is not printing the public IP of client

I have a kong setup in AWS behind a public load balancer.
I am trying to log the client’s public IP in the kong logs.
I have enabled these values in the .kong_env file.
real_ip_recursive = on
real_ip_header = X-Forwarded-For

and in the log format, I am trying to log these two variables
remote_addr and realip_remote_addr

but in the logs, both the variables are printing the private IP of the load balancer instead of the public IP of the client

Add the configuration trusted_ips=0.0.0.0/0,::/0


© 2019 Kong Inc.    Terms  •  Privacy  •  FAQ