Skip to content
Security

平台审计日志

本话题讲的是如何查看和流式传输你们组织的平台注册审计日志。

🌐 This topic covers how to view and stream Platform Audit Logs for your organization.

组织成员执行的任何 平台 API仪表板 操作都会自动记录,以便审计和安全使用。这包括创建新项目、邀请成员、修改边缘函数或更改项目设置等操作。你可以在仪表板中查看这些日志,或使用 审核日志转储 将它们传输到外部目的地。

🌐 Any Platform API or dashboard actions performed by organization members are logged automatically for auditing and security purposes. This includes actions such as creating a new project, inviting members, modifying an edge function or changing project settings. You can view these logs in the dashboard or stream them to an external destination using Audit Log Drains.

除了平台审核日志,Supabase Auth 还提供 身份验证审核日志,用来监控你项目中的身份验证相关活动。

🌐 Besides Platform Audit Logs, Supabase Auth also provides Auth Audit Logs to monitor authentication-related activities within your projects.

访问审计日志 #

🌐 Accessing audit logs

平台审计日志可以在你的组织审计日志中找到。

🌐 Platform Audit Logs can be found under your organization's audit logs.

Platform audit logs

对于每个审计日志,你可以点击日志条目查看更多详情:

🌐 For each audit log, you can see additional details by clicking on the log entry:

  • 操作时间戳
  • 执行动作的演员
    • IP 地址
    • 电子邮件
    • 令牌类型
  • 操作已执行
    • 名字
    • 元数据,例如路线和响应状态
  • 操作目标(项目、组织、边缘函数等)

每个 Supabase 用户账户也可以访问 账户审计日志,这些日志只显示与该用户账户相关的内容。

🌐 Each Supabase user account also has access to Account Audit logs which displays these logs for only the associated user account.

访问审计日志消耗 #

🌐 Accessing Audit Log Drains

审计日志转储可以在你们组织的审计日志转储下进行配置。有关设置说明和支持的目标,请参阅日志转储指南

🌐 Audit Log Drains can be configured under your organization's audit log drains. For setup instructions and supported destinations, see the Log Drains guide.

限制 #

🌐 Limitations

  • 目前无法通过仪表板导出日志
  • 保留期限取决于你的方案