[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-04。"],[[["\u003cp\u003eKubernetes audit logs provide a chronological record of actions within a cluster, offering security-relevant information.\u003c/p\u003e\n"],["\u003cp\u003eEach audit log entry includes details such as \u003ccode\u003ekind\u003c/code\u003e, \u003ccode\u003eapiVersion\u003c/code\u003e, \u003ccode\u003elevel\u003c/code\u003e, \u003ccode\u003eauditID\u003c/code\u003e, \u003ccode\u003estage\u003c/code\u003e, \u003ccode\u003erequestURI\u003c/code\u003e, and \u003ccode\u003everb\u003c/code\u003e to describe the event.\u003c/p\u003e\n"],["\u003cp\u003eAudit logs capture information about the user who initiated the action, including username and group memberships.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003esourceIPs\u003c/code\u003e field records the array of IPs involved in the request, offering insight into the request's origin and intermediate proxies.\u003c/p\u003e\n"],["\u003cp\u003eThe audit logs contain critical timestamps, \u003ccode\u003erequestReceivedTimestamp\u003c/code\u003e and \u003ccode\u003estageTimestamp\u003c/code\u003e, indicating when the request was received and reached the current stage, respectively, and also includes the name of the host that the audit log is forwarded from in the field \u003ccode\u003ehostname\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Kubernetes audit logs\n\nKubernetes collects and records audit logs. Kubernetes auditing provides a security-relevant, chronological set of records documenting the sequence of actions in a cluster.\n| **Note:** This page contains an extract of the Kubernetes public audit documentation. For more information, see [`type Event` of the audit package](https://pkg.go.dev/k8s.io/apiserver/pkg/apis/audit#Event).\n\n**JSON representation** \n\n {\n \"kind\": string,\n \"apiVersion\": string,\n \"level\": string,\n \"auditID\": string,\n \"stage\": string,\n \"requestURI\": string,\n \"verb\": string,\n \"user\": {\n object\n },\n \"sourceIPs\": [\n string array\n ],\n \"userAgent\": string,\n \"objectRef\": {\n object\n },\n \"requestReceivedTimestamp\": string,\n \"stageTimestamp\": string,\n \"hostname\": string\n }"]]