---
title: "Start continuous log streaming"
method: POST
path: "/api/v1/k8s/logs/collect/continuous"
tags: ["K8s Logs"]
---

# Start continuous log streaming

`POST /api/v1/k8s/logs/collect/continuous`

## Request

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

Start continuous log collection with streaming

## Request body

- K8sLogsStartLogCollectionRequest
  - `app_id` string: Frontend sends app_id; used as fallback for AppName
  - `app_name` string
  - `cluster_id` string, required
  - `container_name` string
  - `follow` boolean: Whether to follow logs (streaming)
  - `log_level` string: Optional filter by log level
  - `namespace` string, required
  - `pod_name` string, required
  - `since` string: Only return logs after this time (RFC3339)
  - `tail_lines` integer: Number of lines to tail (default: 1000)

## Response `200`

OK

- object

---

[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)
