审计活动(审计活动)
这审计活动端点提供关于应用程序审计事件的信息。
检索审计事件
要检索审计事件,请获取请求/执行器/auditevents如以下基于卷度的示例所示:
$ curl 'http://localhost:8080/actuator/auditevents?principal=alice&after=2017-11-07T09%3A37Z&type=logout' -i -X GET
上述示例 检索注销校长的活动,爱丽丝,发生在2017年11月7日UTC时区09:37之后。
最终的响应类似于以下内容:
HTTP/1.1 200 OK
Content-Type: application/vnd.spring-boot.actuator.v3+json
Content-Length: 117
{
"events" : [ {
"principal" : "alice",
"timestamp" : "2017-11-07T09:38:13Z",
"type" : "logout"
} ]
}