启用 Log Analytics

Flow Analyzer 会分析存储在日志存储桶中的 VPC 流日志数据。

准备工作

  1. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Roles required to select or create a project

    • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
    • Create a project: To create a project, you need the Project Creator (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  2. 确保项目具有包含 VPC 流日志的日志存储桶。

升级日志存储桶以使用 Log Analytics

控制台

  1. 在 Google Cloud 控制台中,前往 Flow Analyzer 页面。

    前往 Flow Analyzer

  2. 点击启用流日志。系统会显示 VPC 网络页面。

  3. 如需升级所选日志存储桶(包含 VPC 流日志)以使用 Flow Analyzer,请点击升级。如需了解详情,请参阅升级存储桶以使用 Log Analytics