---
title: "SSE 实时日志流"
method: GET
path: "/namespaces/:namespace/pods/:pod/logs/stream"
tags: ["Logs"]
---

# SSE 实时日志流

`GET /namespaces/:namespace/pods/:pod/logs/stream`

## Request

- Base URL: `/bcsapi/v4/monitor/api/projects/:projectId/clusters/:clusterId` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/bcsapi/v4/monitor/api/projects/:projectId/clusters/:clusterId/namespaces/:namespace/pods/:pod/logs/stream`
- Auth: none declared

## Query parameters

- `container_name` string, required
- `started_at` string

## Response `200`

OK

## Changes

- **2022-08-17** `6f5cef7b8940`: 2 info
  - api tag `Logs` added
  - api tag `Pod` removed
- **2022-05-30** `c362500fba2b`: 1 info
  - added the new optional `query` request parameter `started_at`
- **2022-05-18** `1e1b695c30e0`: 1 warning, 2 info
  - deleted the `query` request parameter `started_at`
  - api tag `Pod` added
  - api tag `Logs` removed

[Operation history](https://skmtc.dev/tencentblueking/apis/bcs-monitor-openapi/changes/namespaces/:namespace/pods/:pod/logs/stream/get.md)

---

[API](https://skmtc.dev/tencentblueking/apis/bcs-monitor-openapi.md) - [All operations](https://skmtc.dev/tencentblueking/apis/bcs-monitor-openapi/llms.txt) - [OpenAPI document](https://skmtc.dev/tencentblueking/apis/bcs-monitor-openapi/revisions/ba6addc245e8?raw)
