系统日志记录协议 (syslog) 审核日志

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

string

生成消息的应用的进程 ID。例如,"1"

pri

string

优先级值。例如,"46"

hostname

string

最初发送 syslog 消息的组件。例如,"anthos-audit-logs-forwarder-2kbnd"

ident

string

生成消息的设备或应用。例如,"/logging-prober-sidecar"

msgid

string

消息类型。例如,"audit-log"

extradata

string

其他自定义信息。例如,"[exampleSDID@20224 iut=\"3\" eventSource=\"Application\" eventID=\"11211\"]"

message

string

提供事件相关信息的自由格式消息。例如,

"{\"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\"}"