监控流量
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
以下各个部分介绍了 Flow Analyzer 可以提供帮助的各种情况。
场景:了解客户端-服务器流量
作为网络管理员,您希望了解是谁发起的连接,并以客户端-服务器依赖关系的形式直观呈现流量数据。
访问 Flow Analyzer
您可以访问 Google Cloud 控制台,然后前往 Flow Analyzer。如果子网未启用 Log Analytics,您将不会看到任何数据。
必须在相关子网上启用 VPC 流日志。日志必须存储在您用于查看 Flow Analyzer 的日志存储桶中。另请注意,此日志存储桶必须升级才能使用 Log Analytics。
请按照 Flow Analyzer 页面上的说明启用 Log Analytics。
使用所选属性构建和运行查询
- 在 Flow Analyzer 页面上,选择流量汇总以及您需要查看数据的时间范围。
- 由于您想知道是谁发起了连接,因此在来源窗格中,请在按以下方式整理流框中选择以下字段:VPC 子网、IP 和端口。
流量最高的数据流图表和所有数据流表格会显示查询结果。
查看详细信息以了解客户端-服务器流量
该图表会显示与其他流量相比,随着时间推移的流量前五高的流量。使用此图表发现趋势,例如流量高峰。
您可以使用时间选择器指定所需的时间范围。请降低校准周期的值,以获取所需的详细信息。
如果流量出现特定峰值,请使用详细流信息页面详细了解任何特定流。
查看特定流量详情
在所有数据流表格中,点击您要调查的数据流的详细信息。随即显示的详细流信息页面会显示与所选过滤条件匹配的所有资源以及这些资源的流量。
您可以使用 VPC 流日志中提供的其他字段或属性进一步深入分析查询结果。在详细流信息页面上,深入分析面板会提供有关所选流量的详细信息,包括来源、目的地、流量和可能的深入分析选项等信息。
您可以使用任何可用的额外字段拆分所选流量,以便进一步进行深入分析。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-25。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-25。"],[],[],null,["# Monitor your traffic flows\n\nThe following sections describe various ways that Flow Analyzer can\nhelp you.\n\nScenario: Understand client-server traffic\n------------------------------------------\n\nAs a network administrator, you want to understand who initiated the connection\nand visualize the traffic flow data in the form of client-server dependency.\n\n### Access Flow Analyzer\n\nYou access Google Cloud console and go to Flow Analyzer. If\nLog Analytics isn't enabled on the subnet, you'll see no data.\n\nVPC Flow Logs must be enabled on the relevant subnet. The logs must be\nstored in the log bucket that you're using to view Flow Analyzer.\nAlso note that this log bucket must be upgraded to use Log Analytics.\n\nFollow the instructions on the Flow Analyzer page to enable\nLog Analytics.\n\n### Build and run the query using the selected properties\n\n1. On the Flow Analyzer page, select the traffic aggregation and the time range for which you need to view the data.\n2. Because you want to know who initiated the connection, in the **Source** pane, select the following fields in the **Organize Flows by** box: **VPC subnetwork, IP, and Port**.\n\nThe **Highest data flows** chart and the **All data flows** table display the\nquery results.\n\n### View the details to understand the client-server traffic\n\nThe chart displays the top five highest traffic flows over time, when\ncompared with the rest of the traffic. Spot trends such as traffic spikes using\nthis chart.\n\nYou can use the time selector to specify the required time range.\nDecrease the value of the alignment period to get the required details.\n\nIf there are specific spikes in the traffic, learn more about any specific flow\nusing the **Flow details** page.\n\n### View specific traffic flow details\n\nIn the **All data flows** table, click **Details** for the flow you'd like to\ninvestigate. The **Flow details** page that appears shows all the\nresources matching the selected filters and the traffic of these resources.\n\nYou can further drill down the query results using the remaining fields or\nproperties available in VPC Flow Logs. On the **Flow details** page,\nthe **drill down** panel provides details about the selected traffic flow\nincluding information such as the source, destination, traffic, and possible\ndrill down options.\n\nYou can drill down further by splitting a selected traffic flow using any\navailable extra field."]]