---
title: "Get logs (K8s)"
method: GET
path: "/v2/logs/k8"
tags: ["Logs"]
---

# Get logs (K8s)

`GET /v2/logs/k8`

## Query parameters

- `pod` string, nullable
- `limit` integer, nullable

## Response `200`

Returns k8 pod logs from duckdb

- PodLogList[]
  - `logs` PodLogEntry[]
    - `container_name` string, required
    - `message` string, required
    - `stream` string, nullable
    - `timestamp` integer, required
  - `namespace` string, required
  - `pod_name` string, required

## Other responses

- `500` — Failed to connect/fetch from logs table from database

---

[API](https://skmtc.dev/cedana/apis/cedana-api.md) · [All operations](https://skmtc.dev/cedana/apis/cedana-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cedana/cedana-api/revisions/f1a3fa319485/schema)
