审计事件 (auditevents)
原文:https://docs.spring.io/spring-boot/api/rest/actuator/auditevents.html
auditevents 端点提供应用的审计事件信息。
检索审计事件
向 /actuator/auditevents 发出 GET 请求:
$ curl 'http://localhost:8080/actuator/auditevents?principal=alice&after=2017-11-07T09%3A37Z&type=logout' -i -X GET
上例检索 2017 年 11 月 7 日 09:37(UTC)之后主体 alice 的 logout 事件。支持按 principal、after、type 过滤。响应包含事件列表,每个事件包含时间戳、主体、类型和元数据等字段。需要 AuditEventRepository bean。