- Audit logs: Contain metadata about operations that modify a cluster. For example, who and when created or deleted a Pod. Disabled by default; you can enable them.
-
Control plane logs: Show actions recorded by control plane components of a cluster. For example, you can learn about the cluster scaling, Pod scheduling or node availability.
The control plane logs are collected from the following components:
- API server (kube-apiserver)
- Scheduler (kube-scheduler)
- Cluster autoscaler
- Controller manager (kube-controller-manager)
- Cloud controller manager
How to enable audit logs
Audit logs in Managed Kubernetes are disabled by default. To enable them, run the following command:How to view logs
- Web console
- In the sidebar, go to
Compute → Kubernetes.
- Open the page of the required cluster and then go to the Logs tab.
- In the Bucket field, select Managed Kubernetes audit logs or Managed Kubernetes control planes.
- (Optional) To check logs for a specific control plane component, select it in the Component field.
- Apply the required period.