在 Flow Analyzer 中排查数据问题
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
请按照以下指南排查 Flow Analyzer 的常见问题。如需详细了解 Flow Analyzer,请参阅概览。
未显示任何数据
如果您在 Flow Analyzer 中没有看到任何数据,请执行以下操作:
- 确保为相关子网启用了 VPC 流日志。如需了解详情,请参阅在创建子网时启用 VPC 流日志或为现有子网启用 VPC 流日志。
- 确保时间轴设置正确。如果所选时间段内没有流量,Flow Analyzer 不会显示任何数据。如需了解详情,请参阅时间范围选择器。
- 验证日志存储桶设置:
- 确保项目具有包含 VPC 流日志的日志存储桶。
- 检查项目中的日志存储桶是否未停用 VPC 流日志。
- 确认 VPC 流日志不会定向到其他存储桶。如需了解详情,请参阅配置中心存储桶。
- 确认日志存储桶已升级为使用 Log Analytics。如需了解详情,请参阅启用 Log Analytics。
- 检查是否缺少字段和过滤条件:
- 确保采样率不太低。
由于以下原因,VPC 流日志中没有任何元数据字段:
- 此项目的 VPC 流日志中已停用元数据。
- 流量是跨项目通信的一部分。
- 实际数据未知,因为流量来自外部资源。
- 尚无元数据信息。
在 VPC 流日志中被滤除的字段
启用 VPC 流日志时,您可以根据基本字段和元数据字段设置过滤条件,以仅保留与该过滤条件匹配的日志。所有其他日志在写入 Logging 之前都会被舍弃,这样可以节省资金并缩短查找所需信息的时间。
您或其他用户可以根据记录格式的任意字段子集进行过滤。确认项目中的其他用户不会过滤掉必填字段。如需了解详情,请参阅日志过滤。
采样率低
如果采样率设置得过低,您将无法在 Flow Analyzer 中查看任何数据。
如需了解更多问题排查信息,请参阅排查 VPC 流日志问题。
发送有关 Flow Analyzer 的反馈
如需发送有关 Flow Analyzer 的反馈或在使用 Flow Analyzer 时遇到的任何问题,请执行以下操作:
- 点击发送反馈图标。随即显示“向 Google 发送反馈”面板。
- 请具体说明您的反馈意见。
- 如需添加屏幕截图,请点击截取屏幕截图。您还可以使用修改工具标记需要注意的区域或隐藏敏感信息。
- 选择当前标签页中的内容。
- 点击分享。
屏幕截图已添加到反馈中。
- 点击发送。
后续步骤
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-20。
[[["易于理解","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-20。"],[],[],null,["# Troubleshoot data issues in Flow Analyzer\n\nUse the following guidance to troubleshoot common issues with\nFlow Analyzer. To learn more about Flow Analyzer, see the\n[overview](/network-intelligence-center/docs/flow-analyzer/overview).\n\nNo data is displayed\n--------------------\n\nIf you don't see any data in Flow Analyzer, do the following:\n\n1. Make sure that VPC Flow Logs is enabled for the relevant subnets. For more information, see [Enable VPC Flow Logs when you create a subnet](/vpc/docs/using-flow-logs#enable-logging-new) or [Enable VPC Flow Logs for an existing subnet](/vpc/docs/using-flow-logs#enable-logging-existing).\n2. Make sure that the timeline is correctly set. If there's no traffic flow within the selected time period, Flow Analyzer doesn't show any data. For more information, see [Time-range selector](/network-intelligence-center/docs/flow-analyzer/overview#time-selector).\n3. Validate the log bucket setup:\n - Ensure that the project has a log bucket that contains VPC Flow Logs.\n - Check that VPC Flow Logs is not disabled for the log bucket in the project.\n - Verify that VPC Flow Logs is not directed to another bucket. For more information, see [Configure a central bucket](/network-intelligence-center/docs/flow-analyzer/configure-central-bucket).\n - Confirm that the log bucket is upgraded to use Log Analytics. For more information, see [Enable Log Analytics](/network-intelligence-center/docs/flow-analyzer/enable-log-analytics).\n4. Check for missing fields and filters:\n - Make sure that there are no [missing metadata fields](#missing-metadata).\n - Verify there are no [filtered out fields in VPC Flow Logs](#filtered-out-fields).\n5. Make sure that the [sampling rate is not too low](#low-sampling-rate).\n\nMissing metadata fields\n-----------------------\n\nThere aren't any metadata fields in VPC Flow Logs due to the\nfollowing reasons:\n\n- Metadata is disabled in VPC Flow Logs for this project.\n- The traffic flow is a part of cross-project communication.\n- Actual data is unknown because the traffic is from an external resource.\n- The metadata information is not yet available.\n\nFiltered out fields in VPC Flow Logs\n------------------------------------\n\nWhen you enable VPC Flow Logs, you can set a filter based on both base and\nmetadata fields that only preserves logs that match the filter. All other logs\nare discarded before being written to Logging, which saves you\nmoney and reduces the time needed to find the information you are looking for.\n\nYou or other users can filter on any subset of fields from the\nrecord format. Verify that the required fields are not filtered out by other users\nin your project. For more information, see\n[Log filtering](/vpc/docs/about-flow-logs-records#filtering).\n\nLow sampling rate\n-----------------\n\nIf the sampling rate is set too low, you cannot see any data in\nFlow Analyzer.\n\nFor additional troubleshooting information, see\n[Troubleshoot VPC Flow Logs](/vpc/docs/access-flow-logs#troubleshooting).\n\nSend feedback about Flow Analyzer\n---------------------------------\n\nTo send your feedback about Flow Analyzer or any issues faced\nwhile using Flow Analyzer, do the following:\n\n1. Click the **Send feedback** icon. The Send feedback to Google panel appears.\n2. Describe your feedback.\n3. To add a screenshot, click **Capture screenshot** . You can also mark the area of concern or hide sensitive information by using the **Edit** tool.\n4. Select the contents of the current tab.\n5. Click **Share**. The screenshot is added to the feedback.\n6. Click **Send**.\n\nWhat's next\n-----------\n\n- [Analyze traffic flows](/network-intelligence-center/docs/flow-analyzer/analyze-traffic-flows)\n- [Run Connectivity Tests from Flow Analyzer](/network-intelligence-center/docs/flow-analyzer/run-connectivity-tests)\n- [Monitor your traffic flows](/network-intelligence-center/docs/flow-analyzer/monitor-traffic-flows)"]]