- 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
- journald logs: Show entries recorded by systemd services running on cluster nodes. Disabled by default; you can enable them.
Prerequisites
If you use the web console, you don’t need to complete any prerequisites.- CLI
- Go SDK
- Python SDK
- JavaScript SDK
Install and configure the Nebius AI Cloud CLI.
How to enable audit logs
Audit logs in Managed Kubernetes are disabled by default. To enable them for a cluster, specify the cluster ID:- CLI
- Go SDK
- Python SDK
- JavaScript SDK
How to view audit and control plane 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.
How to enable journald logs
The monitoring agent installed on cluster nodes can collect journald logs from systemd services and forward them to Observability Logs. To configure journald log collection, set instance metadata labels when you create or update a node group. The settings apply to all nodes in the group.- CLI
- Go SDK
- Python SDK
- JavaScript SDK
To enable journald log collection for a new node group, add the labels when you create the node group:The
--template-instance-metadata-labels parameter accepts the following labels, separated by commas:nebius.o11y.systemd-logs-collection.enabled=true: Enables journald log collection.nebius.o11y.systemd-logs-collection.units=<systemd_units>: Specifies the systemd units to collect logs from. Separate multiple units with semicolons, for example,sshd.service;containerd.service. If you omit this label, logs from all units are collected.
--template-instance-metadata-labels parameter replaces all existing instance metadata labels, so include the labels you want to keep as <existing_labels> in the command:How to view journald logs
- Web console
- CLI
- In the web console, go to Observability → Logs.
- In the Bucket field, select User logs.
-
To show only the logs of your cluster, enter the following query:
The
__bucket__label is required. For more information about the query syntax, see LogQL implementation by Nebius AI Cloud.