本页面上的部分或全部信息可能不适用于 Trusted Cloud by S3NS。
本文档介绍如何使用 Cloud Logging 审核与政策标记相关的活动。例如,您可以确定以下内容:
授予或移除政策标记访问权限的主账号的电子邮件地址
被授予或移除访问权限的人员的电子邮件地址
访问权限已更改的政策标记
日志访问权限
如需了解查看日志所需的权限,请参阅 Cloud Logging 访问权限控制指南。
查看政策标记事件的日志
转到 Google Cloud 控制台中的日志浏览器页面。
转到日志浏览器
点击资源下拉列表中的已审核的资源,再次点击已审核的资源,然后点击 datacatalog.googleapis.com。您将看到 Data Catalog 资源的近期审核日志条目。
如需要查看日志条目,请选择 Data Catalog SetIamPolicy
方法。
点击日志条目,查看调用 SetIamPolicy
方法的相关详细信息。
点击相应日志条目字段以查看 SetIamPolicy
条目的详细信息。
后续步骤
了解政策标记的最佳做法。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-04-21。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-04-21。"],[[["This guide explains how to use Cloud Logging to monitor activities related to policy tags, including who granted or removed access."],["You can view logs to determine the email of the principal granting or removing access, as well as the email of the user who was granted or removed from access."],["Access the logs through the Logs Explorer page in the Google Cloud console by selecting Audited Resources, and then datacatalog.googleapis.com."],["You can filter log entries to view calls made to the `SetIamPolicy` method, where details about policy changes are stored."]]],[]]