最新の安定バージョンについては、Spring Boot 3.5.7 を使用してください! |
イベントの監査 (auditevents)
auditevents エンドポイントは、アプリケーションの監査イベントに関する情報を提供します。
監査イベントの取得
監査イベントを取得するには、次の curl ベースの例に示すように、GET リクエストを /actuator/auditevents に作成します。
$ curl 'http://localhost:8080/actuator/auditevents?principal=alice&after=2017-11-07T09%3A37Z&type=logout' -i -X GET 前述の例では、UTC タイムゾーンで 2017 年 11 月 7 日に 09:37 の後に発生したプリンシパル alice の logout イベントを取得します。結果のレスポンスは次のようになります。
HTTP/1.1 200 OK
Content-Type: application/vnd.spring-boot.actuator.v3+json
Content-Length: 117
{
"events" : [ {
"timestamp" : "2017-11-07T09:38:13Z",
"principal" : "alice",
"type" : "logout"
} ]
}