Search code examples
google-cloud-platformgoogle-cloud-functionsgoogle-compute-enginegoogle-cloud-logginggoogle-vpc

What logs can I use to diagnose connectivity issues on a GCE network?


On Google Cloud we are using the following:

  • A Cloud Function that connects to
  • A service running on a GCE VM
  • via a VPC Access Connector

Its been running fine for months then all of a sudden it stopped working and all attempts to connect to the service cause the following error in our Cloud Function logs:

Connection to 10.X.X.X timed out. (connect timeout=10)

That IP address is the IP address of the VM.

At this point I'm not sure how to go about diagnosing the problem as GCE networking is unfamiliar to me. What should I be searching for in Cloud Logging to try and determine the root cause of the problem?


Solution

  • I've discovered that much more detailed logs are available by filtering on

    resource.type="gce_subnetwork"

    These logs provide much more detailed information about the network traffic.