---
title: "Retrieve log from a container"
method: GET
path: "/logs"
tags: ["log"]
---

# Retrieve log from a container

`GET /logs`

## Query parameters

- `project_name` string
- `model_id` string
- `model_name` string
- `version_id` string
- `prediction_job_id` string
- `cluster` string, required
- `namespace` string, required
- `component_type` 'image_builder' | 'model' | 'transformer' | 'batch_job_driver' | 'batch_job_executor', required
- `container_name` string
- `prefix` string
- `follow` string
- `previous` string
- `since_seconds` string
- `since_time` string
- `timestamps` string
- `tail_lines` string
- `limit_bytes` string

## Response `200`

OK

## Changes

> 34 revisions in range; 4 not diffed.

- **2024-01-23** `c3ef0b1c733b` — 1 breaking
  - removed the media type `text/plain` for the response with the status `200`
- **2023-12-05** `d062ab20ef25` — 1 info
  - added the media type `text/plain` for the response with the status `200`
- **2021-07-29** `64febf19f1b9` — 1 breaking, 3 warning, 7 info
  - added the new required `query` request parameter `component_type`
  - deleted the `query` request parameter `name`
  - deleted the `query` request parameter `pod_name`
  - deleted the `query` request parameter `pretty`
  - …7 more
- **2020-09-28** `c4b3505de7df` — 2 breaking, 8 warning, 2 info
  - added the new required `query` request parameter `name`
  - added the new required `query` request parameter `pod_name`
  - deleted the `query` request parameter `component_type`
  - deleted the `query` request parameter `container_name`
  - …8 more

[Change history](https://skmtc.dev/caraml-dev/apis/merlin/changes/logs/get.md)

---

[API](https://skmtc.dev/caraml-dev/apis/merlin.md) · [All operations](https://skmtc.dev/caraml-dev/apis/merlin/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/caraml-dev/merlin/revisions/a1e12cbeeebc/schema)
