To work with logs in the terminal, you can use the logcli command-line tool. Take into account the limitations of our LogQL implementation.Documentation Index
Fetch the complete documentation index at: https://docs.nebius.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- Install and configure Nebius AI Cloud CLI.
- If you don’t have a service account for observability services, create one.
-
Make sure that the service account is 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. If the service account is not in the required group, click→ Add to group, and select
viewers. -
Issue a static key for the service account using the following command:
Copy the value of the static key from the
tokenparameter of the response. You will need it on later steps.
Steps
- Download LogCLI binary for your platform from the Loki releases page.
-
Unzip the binary and move it to a directory that is part of your
$PATH. -
Save the static key that you got earlier to a
LOKI_BEARER_TOKENenvironment variable:Alternatively, get an access token for the current user of Nebius AI Cloud CLI: -
Save the following URL to a
LOKI_ADDRenvironment variable:In the URL, specify your project ID. -
Run LogQL queries with
logcli. Currently, the only supported label is__bucket__. It can have 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
Instead of using environment variables, you can provide the access token and the URL when you run the command:
The Grafana Labs Marks are trademarks of Grafana Labs, and are used with Grafana Labs’ permission. We are not affiliated with, endorsed or sponsored by Grafana Labs or its affiliates. Postgres, PostgreSQL and the Slonik Logo are trademarks or registered trademarks of the PostgreSQL Community Association of Canada, and used with their permission.