> ## 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.

# How to check logs of a Devlab, job, or endpoint

> Check Devlab, job, and endpoint logs in the web console or CLI, and filter or stream the output.

Checking logs is available only in the web console and CLI.

## Prerequisites

> [tab] Web console
>
> Make sure that you are in a [group](https://docs.nebius.com/iam/authorization/groups/index.md) that has the
> role within your
> .
> You can check this in the [Administration → IAM](https://console.nebius.com/iam) section of the web console.

> [tab] CLI
>
> * [Install and configure](https://docs.nebius.com/cli/install.md) the Nebius AI Cloud CLI.
>
>   Check that your project ID is saved in the Nebius AI Cloud CLI profile configuration:
>
>   ```bash theme={null}
>   cat ~/.nebius/config.yaml
>   ```
>
> * Make sure that you or the service account that you use is in a [group](https://docs.nebius.com/iam/authorization/groups/index.md) that has the
>   role within your
>   .
>   You can check this in the [Administration → IAM](https://console.nebius.com/iam) section of the web console.

## Steps

> [tab] Web console
>
> 1. In the sidebar, go to  **Serverless AI** and open **Devlabs**, **Jobs**, or **Endpoints**.
> 2. Next to the required resource, click **View logs**. Alternatively, open the page of this resource and switch to the **Logs** tab.
>
> You can use the period or log-level filters to filter the logs. You can also use the [LogQL query language](https://docs.nebius.com/observability/logs/query-language.md).

> [tab] CLI
>
> Run the following command:
>
> * For a Devlab:
>
>   ```bash theme={null}
>   nebius ai devlab logs <devlab_ID> --follow
>   ```
>
> * For a job:
>
>   ```bash theme={null}
>   nebius ai job logs <job_ID> --follow
>   ```
>
> * For an endpoint:
>
>   ```bash theme={null}
>   nebius ai endpoint logs <endpoint_ID> --follow
>   ```
>
> You can add the following parameters to control the output:
>
> * `--follow` or `-f`: Stream logs in real time.
> * `--since <value>`: Show logs starting from the specified time. For example, `1h` (from 1 hour ago), `30m` (from 30 minutes ago), or `2024-01-01` (from that date).
> * `--tail <value>`: Number of recent lines to show in the output.
> * `--timestamps`: Include timestamps in the output.
> * `--until <value>`: Show logs up to the specified time. For example, `1h` (up to 1 hour ago), `30m` (up to 30 minutes ago), or `2024-01-01` (up to that date).
