借助 Google Distributed Cloud (GDC) 网闸隔离配置中的系统日志记录协议 (syslog) 审核日志,您可以监控系统组件中的运维和安全性事件。这些组件根据 RFC 5424 syslog 规范,使用结构化标头属性和 JSON 事件消息来设置审核日志条目的格式。
JSON 表示法
{
"pid": string,
"pri": string,
"hostname": string,
"ident": string,
"msgid": string,
"extradata": string,
"message": string
}
| 字段 | |
|---|---|
pid |
发出消息的应用的进程 ID。例如 |
pri |
优先级值。例如 |
hostname |
最初发送系统日志消息的组件。例如 |
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\"}" |