14.2. 审计日志消息示例
日志消息的格式如下:
{ "headers": { "Accept-Encoding": [ "gzip" ], "Content-Length": [ "586" ], "Content-Type": [ "application/json" ], "User-Agent": [ "Go-http-client/1.1" ] }, "data": { "audit": { "interaction": "CREATE", "method": "UI", "request": { "endpoint": "/v1/notifiers", "method": "POST", "payload": { "@type": "storage.Notifier", "enabled": true, "generic": { "auditLoggingEnabled": true, "endpoint": "http://samplewebhookserver.com:8080" }, "id": "b53232ee-b13e-47e0-b077-1e383c84aa07", "name": "Webhook", "type": "generic", "uiEndpoint": "https://localhost:8000" } }, "status": "REQUEST_SUCCEEDED", "time": "2019-05-28T16:07:05.500171300Z", "user": { "friendlyName": "John Doe", "role": { "globalAccess": "READ_WRITE_ACCESS", "name": "Admin" }, "username": "john.doe@example.com" } } } }
{
"headers": {
"Accept-Encoding": [
"gzip"
],
"Content-Length": [
"586"
],
"Content-Type": [
"application/json"
],
"User-Agent": [
"Go-http-client/1.1"
]
},
"data": {
"audit": {
"interaction": "CREATE",
"method": "UI",
"request": {
"endpoint": "/v1/notifiers",
"method": "POST",
"payload": {
"@type": "storage.Notifier",
"enabled": true,
"generic": {
"auditLoggingEnabled": true,
"endpoint": "http://samplewebhookserver.com:8080"
},
"id": "b53232ee-b13e-47e0-b077-1e383c84aa07",
"name": "Webhook",
"type": "generic",
"uiEndpoint": "https://localhost:8000"
}
},
"status": "REQUEST_SUCCEEDED",
"time": "2019-05-28T16:07:05.500171300Z",
"user": {
"friendlyName": "John Doe",
"role": {
"globalAccess": "READ_WRITE_ACCESS",
"name": "Admin"
},
"username": "john.doe@example.com"
}
}
}
}