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

# Retrieve log from a container

`GET /logs`

## Query parameters

- `name` string, required
- `pod_name` string, required
- `namespace` string, required
- `cluster` string, required
- `follow` string
- `limit_bytes` string
- `pretty` string
- `previous` string
- `since_seconds` string
- `since_time` string
- `tail_lines` string
- `timestamps` string

## Response `200`

OK

## Changes

- **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/bd7c2eaf05f4/schema)
