---
title: "Gets logs for a Loops trainer deployment"
method: GET
path: "/v1/loops/deployments/{deployment_id}/logs"
---

# Gets logs for a Loops trainer deployment

`GET /v1/loops/deployments/{deployment_id}/logs`

Fetches logs from the trainer pods of a Loops deployment. Visible to any member of the deployment's team.

## Query parameters

- `start_epoch_millis` integer, nullable
- `end_epoch_millis` integer, nullable
- `direction` 'asc' | 'desc'
- `limit` integer, nullable
- `min_level` 'DEBUG' | 'INFO' | 'WARNING' | 'ERROR' — A log severity level.

## Response `200`

- GetLogsResponseV1 — A response to querying logs.
  - `logs` LogV1[], required — Logs for a specific entity.
    - `timestamp` string, required — Epoch nanosecond timestamp of the log message.
    - `message` string, required — The contents of the log message.
    - `replica` string, nullable, required — The replica the log line was emitted from.
    - `request_id` string, nullable — The request ID associated with an inference request.
    - `level` 'DEBUG' | 'INFO' | 'WARNING' | 'ERROR' — A log severity level.

---

[API](https://skmtc.net/baseten/apis/baseten-inference-api.md) · [All operations](https://skmtc.net/baseten/apis/baseten-inference-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/baseten/baseten-inference-api/versions/a55a2f64c3c5/schema)
