---
title: "Query console logs from a run"
method: GET
path: "/api/runs/logs"
tags: ["Runs"]
---

# Query console logs from a run

`GET /api/runs/logs`

## Request

- Base URL: `https://pluto-api.trainy.ai`
- URL: `https://pluto-api.trainy.ai/api/runs/logs`
- Auth: HTTP bearer

Returns console logs (stdout/stderr) from ClickHouse. Supports filtering by log type and pagination.

## Query parameters

- `runId` number, nullable: Numeric run ID
- `projectName` string, required: Project name
- `logType` 'INFO' | 'ERROR' | 'WARNING' | 'DEBUG' | 'PRINT': Filter by log type
- `limit` number: Maximum lines to return
- `offset` number, nullable: Number of lines to skip

## Response `200`

Console logs

- QueryLogsResponse
  - `logs` object[], required
    - `time` string, required
    - `logType` string, required
    - `lineNumber` number, required
    - `message` string, required
    - `step` number, nullable, required
  - `total` number, required

---

[API](https://skmtc.dev/trainy/apis/mlop-api.md) - [All operations](https://skmtc.dev/trainy/apis/mlop-api/llms.txt) - [OpenAPI document](https://skmtc.dev/trainy/apis/mlop-api/revisions/5d2c0b0baecb?raw)
