---
title: "Get service database logs"
method: GET
path: "/services/{uuid}/databases/{database_uuid}/logs"
tags: ["Service databases"]
---

# Get service database logs

`GET /services/{uuid}/databases/{database_uuid}/logs`

Get Docker logs for a compose database container.

## Path parameters

- `uuid` string, required
- `database_uuid` string, required

## Query parameters

- `lines` integer

## Response `200`

Logs.

- object
  - `logs` string

## Other responses

- `400` — Invalid token.
- `401` — Unauthenticated.
- `404` — Resource not found.
- `501` — Swarm not supported.

## Changes

- **2026-07-15** `03e2545b5eeb` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/coollabsio/apis/coolify/changes/services/:uuid/databases/:database_uuid/logs/get.md)

---

[API](https://skmtc.dev/coollabsio/apis/coolify.md) · [All operations](https://skmtc.dev/coollabsio/apis/coolify/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/coollabsio/coolify/revisions/789e6ad3796c/schema)
