> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vast.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Endpoint and Worker Logs

> Learn how to access Vast serverless logs

Endpoint and worker logs provide real-time visibility into the behavior of your serverless infrastructure. These logs are primarily intended for debugging issues with endpoints, workergroups, and individual workers.

## Endpoint Logs

Endpoint logs are available under the **"All Workergroups"** tab in the Serverless endpoint, within the Vast console UI.

<Frame caption="Endpoint Log">
  <img src="https://mintcdn.com/vastai-80aa3a82/gxkaC5y9pMYn_gUS/images/endpoint-log.webp?fit=max&auto=format&n=gxkaC5y9pMYn_gUS&q=85&s=c534e1e0436ebc8415f3dc3c550fb016" alt="Endpoint Log" width="2311" height="1214" data-path="images/endpoint-log.webp" />
</Frame>

These logs include low-level details about scaling decisions made by the serverless engine. They are useful for understanding how the system responds to traffic and workload changes, and include:

* Summarized performance for all workers and workergroups
* Measured and estimated performance and worker load
* Marketplace offer details used in worker recruitment

## Worker Logs

Worker logs are accessible on a per-worker basis. To view worker logs, navigate to the serverless endpoint in question and click on this icon next to the worker.

<Frame caption="Worker Log">
  <img src="https://mintcdn.com/vastai-80aa3a82/i_2h4PucC2hksc2Z/images/worker-log.webp?fit=max&auto=format&n=i_2h4PucC2hksc2Z&q=85&s=c23a399b722c512c2f2fb6903204d33f" alt="Worker Log" width="4308" height="771" data-path="images/worker-log.webp" />
</Frame>

Worker logs provide detailed runtime output for individual workers, helping you debug model loading, request handling, container behavior, and other worker-specific events.

## Log Characteristics and Retention

* Logs are **streaming outputs**, typically only a few seconds behind real-time.
* Logs are **not permanently maintained** and are intended for near real-time debugging of issues.
* Users who need longer retention should **periodically download logs** to store them externally.

## Accessing Logs Through the CLI

In addition to accessing these logs through the UI, you can use the vastai CLI to check endpoint and worker group logs at different log levels (level 0 is the highest detail, level 3 the lowest).

## Endpoint logs

```cli CLI Command theme={null}
vastai get endpt-logs <endpoint_id> --level (0-3)
```

## Workergroup logs

```cli CLI Command theme={null}
vastai get wrkgrp-logs <worker_group_id> --level (0-3)
```
