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_serialfor serial logs of Compute virtual machinessp_mlflowfor Managed Service for MLflow logssp_postgresfor Managed Service for PostgreSQL® logssp_cloudappsfor Nebius Applications logsdefaultfor your own logs
Instead of using environment variables, you can provide the access token and the Logging URL when you run the command:
Postgres, PostgreSQL and the Slonik Logo are trademarks or registered trademarks of the PostgreSQL Community Association of Canada, and used with their permission.