---
title: "Fetch cluster logs"
method: GET
path: "/cluster/{clusterId}/logs"
tags: ["Clusters"]
---

# Fetch cluster logs

`GET /cluster/{clusterId}/logs`

## Request

- Base URL: `https://api.qovery.com`
- URL: `https://api.qovery.com/cluster/{clusterId}/logs`
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/qovery/apis/qovery-api/docs/cluster/:clusterId/logs/get.ts> (a function with typed inputs; its response is checked against the schema)

Fetch cluster logs

## Query parameters

- `endpoint` string, required
- `query` string, required
- `start` string
- `end` string
- `limit` string
- `since` string
- `step` string
- `interval` string
- `direction` string

## Response `200`

Cluster Logs

- ClusterLogsResponse
  - `response` string

---

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