审核日志记录

本文档列出了 Google Cloud Managed Lustre 的已审核方法。 Google Cloud 服务会生成审核日志,以记录 Google Cloud 资源中的管理和访问活动。如需详细了解 Cloud Audit Logs,请参阅以下内容:

服务名称

如需查看 Google Cloud Managed Lustre 审核日志,请执行以下操作:

  1. 在 Google Cloud 控制台中,前往 Logs Explorer 页面:

    转到日志浏览器

  2. 将以下查询复制并粘贴到Logs Explorer的查询字段中,然后点击运行查询。

        protoPayload.serviceName="lustre.googleapis.com"
      

方法(按权限类型)

每个 IAM 权限都有一个 type 属性,该属性的值是一个枚举,可以是以下四个值之一:ADMIN_READ、ADMIN_WRITE、DATA_READ 或 DATA_WRITE。在您调用某个方法时,Google Cloud Managed Lustre 会生成一个审核日志,其类别取决于执行该方法所需权限的 type 属性。需要 IAM 权限且 type 属性值为 DATA_READ、DATA_WRITE 或 ADMIN_READ 的方法会生成数据访问审核日志。需要 IAM 权限且 type 属性值为 ADMIN_WRITE 的方法会生成管理员活动审核日志。

以下列表中标记为 (LRO) 的 API 方法是长时间运行的操作 (LRO)。 这些方法通常会生成两个审核日志条目:一个在操作开始时生成,另一个在操作结束时生成。如需了解详情,请参阅长时间运行的操作的审核日志。
权限类型 方法
ADMIN_READ google.cloud.lustre.v1.Lustre.GetInstance
google.cloud.lustre.v1.Lustre.ListInstances
google.cloud.lustre.v1alpha.Lustre.GetInstance
google.cloud.lustre.v1alpha.Lustre.ListInstances
google.longrunning.Operations.GetOperation
google.longrunning.Operations.ListOperations
ADMIN_WRITE google.cloud.lustre.v1.Lustre.CreateInstance (LRO)
google.cloud.lustre.v1.Lustre.DeleteInstance (LRO)
google.cloud.lustre.v1.Lustre.RescheduleMaintenance
google.cloud.lustre.v1.Lustre.UpdateInstance (LRO)
google.cloud.lustre.v1alpha.Lustre.CreateInstance (LRO)
google.cloud.lustre.v1alpha.Lustre.DeleteInstance (LRO)
google.cloud.lustre.v1alpha.Lustre.RescheduleMaintenance
google.cloud.lustre.v1alpha.Lustre.UpdateInstance (LRO)
google.longrunning.Operations.CancelOperation
google.longrunning.Operations.DeleteOperation
DATA_READ google.cloud.lustre.v1.Lustre.ExportData (LRO)
google.cloud.lustre.v1alpha.Lustre.ExportData (LRO)
DATA_WRITE google.cloud.lustre.v1.Lustre.ImportData (LRO)
google.cloud.lustre.v1alpha.Lustre.ImportData (LRO)

API 接口审核日志

如需了解如何针对每种方法评估权限以及评估哪些权限,请参阅 Google Cloud Managed Lustre 的 Identity and Access Management 文档。

google.cloud.lustre.v1.Lustre

以下审核日志与属于 google.cloud.lustre.v1.Lustre 的方法相关联。

CreateInstance

  • 方法:google.cloud.lustre.v1.Lustre.CreateInstance
  • 审核日志类型:管理员活动
  • 权限:
    • lustre.instances.create - ADMIN_WRITE
  • 方法是长时间运行的操作或流式传输操作:长时间运行的操作
  • 此方法的过滤条件: protoPayload.methodName="google.cloud.lustre.v1.Lustre.CreateInstance"

DeleteInstance

  • 方法:google.cloud.lustre.v1.Lustre.DeleteInstance
  • 审核日志类型:管理员活动
  • 权限:
    • lustre.instances.delete - ADMIN_WRITE
  • 方法是长时间运行的操作或流式传输操作:长时间运行的操作
  • 此方法的过滤条件: protoPayload.methodName="google.cloud.lustre.v1.Lustre.DeleteInstance"

ExportData

  • 方法:google.cloud.lustre.v1.Lustre.ExportData
  • 审核日志类型:数据访问
  • 权限:
    • lustre.instances.exportData - DATA_READ
  • 方法是长时间运行的操作或流式传输操作:长时间运行的操作
  • 此方法的过滤条件: protoPayload.methodName="google.cloud.lustre.v1.Lustre.ExportData"

GetInstance

  • 方法:google.cloud.lustre.v1.Lustre.GetInstance
  • 审核日志类型:数据访问
  • 权限:
    • lustre.instances.get - ADMIN_READ
  • 方法是长时间运行的操作或流式传输操作:否。
  • 此方法的过滤条件: protoPayload.methodName="google.cloud.lustre.v1.Lustre.GetInstance"

ImportData

  • 方法:google.cloud.lustre.v1.Lustre.ImportData
  • 审核日志类型:数据访问
  • 权限:
    • lustre.instances.importData - DATA_WRITE
  • 方法是长时间运行的操作或流式传输操作:长时间运行的操作
  • 此方法的过滤条件: protoPayload.methodName="google.cloud.lustre.v1.Lustre.ImportData"

ListInstances

  • 方法:google.cloud.lustre.v1.Lustre.ListInstances
  • 审核日志类型:数据访问
  • 权限:
    • lustre.instances.list - ADMIN_READ
  • 方法是长时间运行的操作或流式传输操作:否。
  • 此方法的过滤条件: protoPayload.methodName="google.cloud.lustre.v1.Lustre.ListInstances"

RescheduleMaintenance

  • 方法:google.cloud.lustre.v1.Lustre.RescheduleMaintenance
  • 审核日志类型:管理员活动
  • 权限:
    • lustre.instances.rescheduleMaintenance - ADMIN_WRITE
  • 方法是长时间运行的操作或流式传输操作:否。
  • 此方法的过滤条件: protoPayload.methodName="google.cloud.lustre.v1.Lustre.RescheduleMaintenance"

UpdateInstance

  • 方法:google.cloud.lustre.v1.Lustre.UpdateInstance
  • 审核日志类型:管理员活动
  • 权限:
    • lustre.instances.update - ADMIN_WRITE
  • 方法是长时间运行的操作或流式传输操作:长时间运行的操作
  • 此方法的过滤条件: protoPayload.methodName="google.cloud.lustre.v1.Lustre.UpdateInstance"

google.cloud.lustre.v1alpha.Lustre

以下审核日志与属于 google.cloud.lustre.v1alpha.Lustre 的方法相关联。

CreateInstance

  • 方法:google.cloud.lustre.v1alpha.Lustre.CreateInstance
  • 审核日志类型:管理员活动
  • 权限:
    • lustre.instances.create - ADMIN_WRITE
  • 方法是长时间运行的操作或流式传输操作:长时间运行的操作
  • 此方法的过滤条件: protoPayload.methodName="google.cloud.lustre.v1alpha.Lustre.CreateInstance"

DeleteInstance

  • 方法:google.cloud.lustre.v1alpha.Lustre.DeleteInstance
  • 审核日志类型:管理员活动
  • 权限:
    • lustre.instances.delete - ADMIN_WRITE
  • 方法是长时间运行的操作或流式传输操作:长时间运行的操作
  • 此方法的过滤条件: protoPayload.methodName="google.cloud.lustre.v1alpha.Lustre.DeleteInstance"

ExportData

  • 方法:google.cloud.lustre.v1alpha.Lustre.ExportData
  • 审核日志类型:数据访问
  • 权限:
    • lustre.instances.exportData - DATA_READ
  • 方法是长时间运行的操作或流式传输操作:长时间运行的操作
  • 此方法的过滤条件: protoPayload.methodName="google.cloud.lustre.v1alpha.Lustre.ExportData"

GetInstance

  • 方法:google.cloud.lustre.v1alpha.Lustre.GetInstance
  • 审核日志类型:数据访问
  • 权限:
    • lustre.instances.get - ADMIN_READ
  • 方法是长时间运行的操作或流式传输操作:否。
  • 此方法的过滤条件: protoPayload.methodName="google.cloud.lustre.v1alpha.Lustre.GetInstance"

ImportData

  • 方法:google.cloud.lustre.v1alpha.Lustre.ImportData
  • 审核日志类型:数据访问
  • 权限:
    • lustre.instances.importData - DATA_WRITE
  • 方法是长时间运行的操作或流式传输操作:长时间运行的操作
  • 此方法的过滤条件: protoPayload.methodName="google.cloud.lustre.v1alpha.Lustre.ImportData"

ListInstances

  • 方法:google.cloud.lustre.v1alpha.Lustre.ListInstances
  • 审核日志类型:数据访问
  • 权限:
    • lustre.instances.list - ADMIN_READ
  • 方法是长时间运行的操作或流式传输操作:否。
  • 此方法的过滤条件: protoPayload.methodName="google.cloud.lustre.v1alpha.Lustre.ListInstances"

RescheduleMaintenance

  • 方法:google.cloud.lustre.v1alpha.Lustre.RescheduleMaintenance
  • 审核日志类型:管理员活动
  • 权限:
    • lustre.instances.rescheduleMaintenance - ADMIN_WRITE
  • 方法是长时间运行的操作或流式传输操作:否。
  • 此方法的过滤条件: protoPayload.methodName="google.cloud.lustre.v1alpha.Lustre.RescheduleMaintenance"

UpdateInstance

  • 方法:google.cloud.lustre.v1alpha.Lustre.UpdateInstance
  • 审核日志类型:管理员活动
  • 权限:
    • lustre.instances.update - ADMIN_WRITE
  • 方法是长时间运行的操作或流式传输操作:长时间运行的操作
  • 此方法的过滤条件: protoPayload.methodName="google.cloud.lustre.v1alpha.Lustre.UpdateInstance"

google.longrunning.Operations

以下审核日志与属于 google.longrunning.Operations 的方法相关联。

CancelOperation

  • 方法:google.longrunning.Operations.CancelOperation
  • 审核日志类型:管理员活动
  • 权限:
    • lustre.operations.cancel - ADMIN_WRITE
  • 方法是长时间运行的操作或流式传输操作:否。
  • 此方法的过滤条件: protoPayload.methodName="google.longrunning.Operations.CancelOperation"

DeleteOperation

  • 方法:google.longrunning.Operations.DeleteOperation
  • 审核日志类型:管理员活动
  • 权限:
    • lustre.operations.delete - ADMIN_WRITE
  • 方法是长时间运行的操作或流式传输操作:否。
  • 此方法的过滤条件: protoPayload.methodName="google.longrunning.Operations.DeleteOperation"

GetOperation

  • 方法:google.longrunning.Operations.GetOperation
  • 审核日志类型:数据访问
  • 权限:
    • lustre.operations.get - ADMIN_READ
  • 方法是长时间运行的操作或流式传输操作:否。
  • 此方法的过滤条件: protoPayload.methodName="google.longrunning.Operations.GetOperation"

ListOperations

  • 方法:google.longrunning.Operations.ListOperations
  • 审核日志类型:数据访问
  • 权限:
    • lustre.operations.list - ADMIN_READ
  • 方法是长时间运行的操作或流式传输操作:否。
  • 此方法的过滤条件: protoPayload.methodName="google.longrunning.Operations.ListOperations"

不会生成审核日志的方法

由于以下一个或多个原因,方法可能不会生成审核日志:

  • 这是一种会产生大量日志的方法,日志生成和存储的费用高昂。
  • 它的审核价值较低。
  • 其他审核或平台日志已提供方法覆盖功能。

以下方法不会生成审核日志:

  • google.cloud.location.Locations.GetLocation
  • google.cloud.location.Locations.ListLocations
  • google.cloud.lustre.v1.Lustre.CreateMirror
  • google.cloud.lustre.v1.Lustre.DeleteMirror
  • google.cloud.lustre.v1.Lustre.GetDirectoryPolicy
  • google.cloud.lustre.v1.Lustre.GetMirror
  • google.cloud.lustre.v1.Lustre.ListDirectoryPolicies
  • google.cloud.lustre.v1.Lustre.ListMirrors
  • google.cloud.lustre.v1.Lustre.UpdateMirror
  • google.cloud.lustre.v1alpha.Lustre.CreateMirror
  • google.cloud.lustre.v1alpha.Lustre.DeleteMirror
  • google.cloud.lustre.v1alpha.Lustre.GetDirectoryPolicy
  • google.cloud.lustre.v1alpha.Lustre.GetMirror
  • google.cloud.lustre.v1alpha.Lustre.ListDirectoryPolicies
  • google.cloud.lustre.v1alpha.Lustre.ListMirrors
  • google.cloud.lustre.v1alpha.Lustre.UpdateMirror
  • google.longrunning.Operations.WaitOperation