Kubernetes audit log
The Kubernetes API server's record of every request made to it: who asked, for what, and whether it was allowed.
In more detail
Audit logging is enabled on the API server with --audit-policy-file plus --audit-log-path or a webhook back end; managed clusters switch it on in the provider's settings. Each event records the user, verb, resource, namespace, response code and, depending on level, the request and response bodies.
Related terms
- audit policy — The Kubernetes file of ordered rules that decides which API requests are logged and at what level of detail.
- audit level — How much of a Kubernetes API request is logged: None, Metadata, Request or RequestResponse.
- audit stage — The point in handling a Kubernetes API request at which an audit event is written.
- API server — The Kubernetes control plane component that serves the Kubernetes API; every read and change to the cluster goes through it.
Taught in
- Windows Event Logs, Sysmon & Linux Auditd Telemetry — Security Operations & Threat Hunting (SOC)