---
title: "Get stored log lines for one container on a Docker host monitor, newest first (admin/superadmin)"
method: GET
path: "/monitors/docker/details/{monitorId}/containers/{containerName}/logs"
tags: ["monitors"]
---

# Get stored log lines for one container on a Docker host monitor, newest first (admin/superadmin)

`GET /monitors/docker/details/{monitorId}/containers/{containerName}/logs`

## Request

- Base URL: `/api/v1` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/v1/monitors/docker/details/{monitorId}/containers/{containerName}/logs`
- Auth: HTTP bearer

## Path parameters

- `monitorId` string, required
- `containerName` string, required

## Query parameters

- `before` string, date-time
- `after` string, date-time
- `limit` integer

## Response `200`

OK

- object
  - `success` true, required
  - `msg` string, required
  - `data` DockerLogPage, required
    - `logs` DockerLog[], required
      - `id` string, required
      - `metadata` object, required
        - `monitorId` string, required
        - `teamId` string, required
        - `containerId` string, required
        - `containerName` string, required
      - `lines` object[], required
        - `ts` string, required
        - `stream` 'stdout' | 'stderr', required
        - `text` string, required
      - `gap` boolean, required
      - `checkedAt` string, required
      - `expiry` string, required
      - `createdAt` string, required
      - `updatedAt` string, required
    - `nextCursor` string, nullable, required

## Other responses

- `400`: Invalid request, or the monitor is not a Docker monitor
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Monitor not found
- `429`: Too many requests
- `500`: Internal server error

## Changes

- **2026-10-01** `e1e4b18d0319`: 3 breaking, 3 warning, 6 info
  - removed the required property `success` from the response with the `401` status
  - removed the required property `success` from the response with the `403` status
  - removed the required property `success` from the response with the `500` status
  - removed the optional property `data` from the response with the `401` status
  - …8 more
- **2026-09-12** `18b49d155064`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/bluewave-labs/apis/checkmate-api/changes/monitors/docker/details/:monitorId/containers/:containerName/logs/get.md)

---

[API](https://skmtc.dev/bluewave-labs/apis/checkmate-api.md) - [All operations](https://skmtc.dev/bluewave-labs/apis/checkmate-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bluewave-labs/apis/checkmate-api/revisions/4f4b0d97c1f9?raw)
