--bucket parameter automatically applies the __bucket__ stream selector, so you don’t need to include it in your LogQL query. Take into account the limitations of our LogQL implementation.
Prerequisites
- Install and configure Nebius AI Cloud CLI.
- Make sure you are in a group that has at least the
viewerrole within your tenant; for example, the defaultviewersgroup. You can check this in the Administration → IAM section of the web console.
Running log queries
To run log queries, use the nebius logging query command:- In your log query (log stream selector), use LogQL as implemented in Nebius AI Cloud, and labels and their values that the log bucket supports.
-
In
--bucket, specify the log bucket.--bucketreplaces the__bucket__label, you don’t need to include__bucket__in your log query (log stream selector).--bucketsupports the following values:sp_serial: Compute virtual machines (serial logs)sp_mk8s_control_plane: Managed Kubernetes clusters (control plane logs)sp_mk8s_audit_logs: Managed Kubernetes clusters (audit logs)sp_mlflow: Managed MLflow clusterssp_postgres: Managed PostgreSQL clusterssp_cloudapps: Standalone Applicationssp_k8srelease: applications for Managed Kubernetesdefault: user-ingested logs
For example:
- To review errors that occurred on Compute virtual machines in the last 15 minutes, run the following command:
- To search for
pgbouncerin Managed PostgreSQL logs in the last 15 minutes, run the following command:
Getting labels and their values
To help you build your log query, get the list of supported labels and their values for each bucket by running the nebius logging labels and nebius logging label-values commands.For example:
Streaming logs
To stream logs in real time, add--follow to your nebius logging query command.
For example:
Running metric queries
To run metric queries, use the nebius logging metrics command:For example:
- To get the error rate in serial logs from Compute virtual machines in the last 15 minutes, run the following command:
- To count Managed Kubernetes control plane logs per level in the last 5 minutes, run the following command: