how to see the actual IP in the loadbalancer's records?

Currently, the nginx proxy is set up outside the GCP environment, and the CLB only allows requests from nginx. I would like to ask how to see the actual IP in the loadbalancer's records?
Like this : client > nginx > CLB(armor) > VM

Solved Solved
0 1 488
1 ACCEPTED SOLUTION

Hi,

I am not really sure if you are asking on the GCP side load balancer or in nginx proxy. However, if you are looking to check the logs information under GCP load balancer you can follow this link[1]. This documentation will guide you to enable the logs of your GCPโ€™s load balancer. From there, or from the documentation it will show you different kinds of information that the load balancer captures.

For nginx proxy, you can use a monitoring tool[3] to check the traffic information. You can also check this link[4] to retrieve the actual IP.



[1]https://cloud.google.com/load-balancing/docs/https/https-logging-monitoring#log-fields

 

[2]https://stackoverflow.com/questions/57373638/google-cloud-tcp-load-balancer-forward-ip

 

[3]https://www.nginx.com/blog/monitoring-nginx/

 

[4]https://stackoverflow.com/questions/57373638/google-cloud-tcp-load-balancer-forward-ip

 

View solution in original post

1 REPLY 1

Hi,

I am not really sure if you are asking on the GCP side load balancer or in nginx proxy. However, if you are looking to check the logs information under GCP load balancer you can follow this link[1]. This documentation will guide you to enable the logs of your GCPโ€™s load balancer. From there, or from the documentation it will show you different kinds of information that the load balancer captures.

For nginx proxy, you can use a monitoring tool[3] to check the traffic information. You can also check this link[4] to retrieve the actual IP.



[1]https://cloud.google.com/load-balancing/docs/https/https-logging-monitoring#log-fields

 

[2]https://stackoverflow.com/questions/57373638/google-cloud-tcp-load-balancer-forward-ip

 

[3]https://www.nginx.com/blog/monitoring-nginx/

 

[4]https://stackoverflow.com/questions/57373638/google-cloud-tcp-load-balancer-forward-ip