系统日志记录协议 (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\"}"