GDC 中的各种组件会根据 RFC-5424 规范,使用标准 syslog 格式生成审核日志。如需了解详情,请参阅https://datatracker.ietf.org/doc/html/rfc5424。
JSON 表示法
{
"pid": string,
"pri": string,
"hostname": string,
"ident": string,
"msgid": string,
"extradata": string,
"message": string
}
| 字段 | |
|---|---|
pid |
生成消息的应用的进程 ID。例如, |
pri |
优先级值。例如, |
hostname |
最初发送 syslog 消息的组件。例如, |
ident |
生成消息的设备或应用。例如, |
msgid |
消息类型。例如, |
extradata |
其他自定义信息。例如, |
message |
提供事件相关信息的自由格式消息。例如, "{\"time\":\"2024-01-24T17:24:55.076954537Z\",\"auditID\":\"7ab3bf57-67cb-4373-bbf6-b3ad0835cc65\",\"user\":{\"identity\":\"audit-log-writer\"},\"resource\":\"41075\",\"action\":\"-\",\"description\":\"This is a prober testing the functionality of the syslog endpoint\",\"userAgent\":\"audit-log-prober\",\"response\":\"-\",\"_gdch_org\":\"-\",\"_gdch_service\":\"audit-log-prober\"}" |