---
title: "Get logs of DBaaS service"
method: POST
path: "/dbaas-service-logs/{service-name}"
tags: ["dbaas"]
---

# Get logs of DBaaS service

`POST /dbaas-service-logs/{service-name}`

## Request

- Base URL: `https://api-ch-gva-2.exoscale.com/v2`
- URL: `https://api-ch-gva-2.exoscale.com/v2/dbaas-service-logs/{service-name}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/exoscale/apis/exoscale-api/docs/dbaas-service-logs/:service-name/post.ts> (a function with typed inputs; its response is checked against the schema)

Get logs of DBaaS service

## Path parameters

- `service-name` string, required

## Request body

- object
  - `limit` integer: How many log entries to receive at most, up to 500 (default: 100)
  - `sort-order` 'desc' | 'asc'
  - `offset` string: Opaque offset identifier

## Response `200`

200

- DbaasServiceLogs
  - `offset` string
  - `first-log-offset` string
  - `logs` object[]
    - `unit` string
    - `time` string
    - `message` string
    - `node` string

## Changes

- **2023-02-03** `6e9809fd1444`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/exoscale/apis/exoscale-api/changes/dbaas-service-logs/:service-name/post.md)

---

[API](https://skmtc.dev/exoscale/apis/exoscale-api.md) - [All operations](https://skmtc.dev/exoscale/apis/exoscale-api/llms.txt) - [OpenAPI document](https://skmtc.dev/exoscale/apis/exoscale-api/revisions/63da6f74c845?raw)
