Skip to main content

审核日志

¥Audit Logs

EnterpriseThis feature is available with an Enterprise plan. 4.6.0This feature requires Strapi version 4.6.0 or later.

审计日志功能提供可搜索和可过滤的显示,显示 Strapi 应用用户执行的所有活动。

¥The Audit Logs feature provides a searchable and filterable display of all activities performed by users of the Strapi application.

IDENTITY CARD
Plan
CMS Enterprise plan
Role & permission
Super Admin role in the project's admin panel
Activation
Available by default, if required plan
Environment
Available in both Development & Production environment
Audit Logs panelAudit Logs panel

用法

¥Usage

使用功能的路径: 设置 > 管理面板 - 审核日志

¥Path to use the feature: Settings > Administration Panel - Audit Logs

审计日志功能记录以下事件:

¥The Audit Logs feature logs the following events:

事件行动
内容类型createupdatedelete
入口(草稿/发布)createupdatedeletepublishunpublish
媒体createupdatedelete
登录/注销successfail
角色/权限createupdatedelete
用户createupdatedelete

对于每个日志项,将显示以下信息:

¥For each log item, the following information is displayed:

  • 行动:用户执行的操作类型(例如 createupdate)。

    ¥Action: type of action performed by the user (e.g.create or update).

  • 日期:操作的日期和时间。

    ¥Date: date and time of the action.

  • 用户:执行操作的用户。

    ¥User: user who performed the action.

  • 细节:显示一个模式,其中包含有关操作的更多详细信息(例如用户 IP 地址、请求正文或响应正文)。

    ¥Details: displays a modal with more details about the action (e.g. the User IP address, the request body, or the response body).

过滤日志

¥Filtering logs

默认情况下,所有日志均按时间倒序显示。你可以通过以下方式过滤日志:

¥By default, all logs are displayed in reverse chronological order. You can filter the logs by:

  • 行动:选择要过滤的操作类型(例如 createupdate)。

    ¥Action: select the type of action to filter by (e.g create or update).

  • 用户:选择要过滤的用户。

    ¥User: select the user to filter by.

  • 日期:选择要过滤的日期(范围)和时间。

    ¥Date: select a date (range) and time to filter by.

Audit Logs filtersAudit Logs filters

访问日志详细信息

¥Accessing log details

对于任何日志项,单击 图标以访问包含有关该操作的更多详细信息的模式。在模式中,Payload 部分在交互式 JSON 组件中显示详细信息,使你能够展开和折叠 JSON 对象。

¥For any log item, click the icon to access a modal with more details about that action. In the modal, the Payload section displays the details in an interactive JSON component, enabling you to expand and collapse the JSON object.

Log details modalLog details modal