---
title: "Get pod logs"
method: GET
path: "/v1/kubernetes/pods/{namespace}/{podName}/logs"
tags: ["Kubernetes"]
---

# Get pod logs

`GET /v1/kubernetes/pods/{namespace}/{podName}/logs`

Returns log output from a pod's container. Useful for debugging services.

## Path parameters

- `namespace` string, required
- `podName` string, required

## Query parameters

- `context` string
- `container` string
- `tailLines` integer
- `sinceTime` string, date-time
- `previous` boolean
- `timestamps` boolean

## Response `200`

Pod logs

- object
  - `success` boolean
  - `data` object
    - `podName` string
    - `namespace` string
    - `containerName` string
    - `logs` string
    - `lineCount` integer
    - `truncated` boolean
  - `error` ErrorInfo
    - `code` string
    - `message` string
  - `meta` MetaInfo
    - `count` integer
    - `timestamp` string, date-time

## Other responses

- `401` — Missing or invalid API key
- `404` — Pod not found

---

[API](https://skmtc.net/txn2/apis/kubefwd-api.md) · [All operations](https://skmtc.net/txn2/apis/kubefwd-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/txn2/kubefwd-api/revisions/e4f8bfb653cf/schema)
