---
title: "Stream pod logs using Server-Sent Events"
method: GET
path: "/insight/aggregator/log/pod/{cluster}/{namespace}/{name}"
tags: ["insight"]
---

# Stream pod logs using Server-Sent Events

`GET /insight/aggregator/log/pod/{cluster}/{namespace}/{name}`

This endpoint streams pod logs in real-time using SSE. It supports container selection and automatic reconnection.

## Path parameters

- `cluster` string, required
- `namespace` string, required
- `name` string, required

## Query parameters

- `container` string
- `since` string
- `sinceTime` string
- `timestamps` boolean
- `tailLines` integer
- `download` boolean

## Response `200`

OK

- AggregatorLogEntry
  - `content` string
  - `error` string
  - `timestamp` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found

## Changes

- **2024-12-20** `f284656f88fa` — 5 info
  - added the new optional `query` request parameter `download`
  - added the new optional `query` request parameter `since`
  - added the new optional `query` request parameter `sinceTime`
  - added the new optional `query` request parameter `tailLines`
  - …1 more
- **2024-12-13** `8f3cc250f8ec` — 1 info
  - endpoint added
- **2023-12-11** `2a20fa0acab4` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/kusionstack/apis/karpor/changes/insight/aggregator/log/pod/:cluster/:namespace/:name/get.md)

---

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