---
title: "Stream logs via WebSocket"
method: GET
path: "/api/v1/k8s/logs/stream"
tags: ["K8s Logs"]
---

# Stream logs via WebSocket

`GET /api/v1/k8s/logs/stream`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/api/v1/k8s/logs/stream`
- Auth: none declared

Stream logs in real-time using WebSocket

## Query parameters

- `app_id` string
- `appId` string
- `cluster_id` string
- `namespace` string
- `pod_name` string
- `container_name` string
- `follow` boolean
- `tail_lines` integer
- `timestamps` boolean

## Other responses

- `101`: WebSocket upgrade

---

[API](https://skmtc.dev/nife/apis/nife-io-swagger-api.md) - [All operations](https://skmtc.dev/nife/apis/nife-io-swagger-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nife/apis/nife-io-swagger-api/revisions/6e868dc62795?raw)
