我可以使用哪些日志来诊断GCE网络上的连接问题?

发布于 2025-02-09 11:17:19 字数 303 浏览 3 评论 0原文

在Google Cloud上,我们使用以下内容:

  • 运行的服务的云功能,
  • 连接到GCE VM上
  • 通过VPC访问连接器

其运行良好数月,然后突然停止工作,并且所有尝试连接到服务原因的尝试我们的云功能日志中的以下错误:

连接到10.xxx的时间。 (连接超时= 10)

IP地址是VM的IP地址。

在这一点上,我不确定如何诊断问题,因为我不熟悉GCE网络。我应该在云日志记录中搜索什么来尝试确定问题的根本原因?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

回眸一笑 2025-02-16 11:17:19

您可以使用云日志记录来检查GCE网络的日志。您检查一下:

  1. 导航菜单>伐木> 记录Explorer
  2. 在GCP控制台的右上部分
  3. ,单击 Resource 。向下滚动并选择 GCE网络
  4. 单击GCE网络后,它将显示VPC网络的网络ID
  5. ,然后选择VM实例的位置,然后单击“应用”。

有关云记录的更多信息,您可以探索此 link

You can use Cloud Logging to check the logs of your GCE Networking. You check it on:

  1. Navigation Menu > Logging > Log Explorer
  2. On the right upper part of your GCP console, click Resource.
  3. Scroll down and choose GCE Network.
  4. Once you click GCE Network, it will show you the Network ID of your VPC network
  5. Then choose where your VM instance is located then click “apply”.

For more information about Cloud Logging you can explore this link.

忆梦 2025-02-16 11:17:19

我发现,通过过滤

resource.type =“ gce_subnetwork”

这些日志提供了有关网络流量的更详细的信息,可以通过过滤resource.Type =“ GCE_SUBNETWORK”来获得更详细的日志。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文