Is audit logging enabled, and where are the logs?
Yes. Kubernetes audit logging is on by default, and the audit logs are located on each control-plane node at /var/log/kube-apiserver/kube-apiserver.log.
Syself sets the audit policy and the rotation. Each control-plane node records the API requests it handled, so a complete trail needs the files from every control-plane node. A node keeps about 1 GB or 90 days of audit log, whichever is reached first. The files go away with the node when it is replaced, including during an update.
If you need to keep the trail, ship the logs off the node. This part is yours, because you choose the destination and the retention. Run a log shipper such as Grafana Alloy or Fluent Bit as a DaemonSet. It must run as root to read the files, and it needs a toleration so it also runs on the control-plane nodes.
Nodes keep more audit records next to the API log: the host audit log from auditd on every node, and on control-plane nodes the log of KubeGate, the proxy in front of the API server.
To read the logs on a node, follow Retrieve audit logs. To ship all of them, start from the ready Grafana Alloy DaemonSet in Ship audit logs to a SIEM.
Related questions
