Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Logging to Cloud Logging only works if instance has an external IP address, why?

Hello,

I've followed these instructions to set up cloud logging for a Python application running on a Compute Engine instance. I've noticed that it only works if the instance has an external IP address.

Is this correct? I assume that the Cloud Logging API communicates over the internet, but I don't understand why, I hope someone can explain this.

Is it also possible to log to Cloud Logging without an external IP adress?

Thanks!

2 0 149