---
title: "Live Server Logs"
description: "Live Server Logs"
url: "https://www.contentstack.com/docs/developers/apis/launch-api/live-server-logs"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-01-13"
---

# Live Server Logs

## Stream live server logs over SSE

### Stream live server logs over SSE

**GET** `/projects/{project_uid}/environments/{environment_uid}/deployments/{deployment_uid}/logs/live`

Opens a persistent Server-Sent Events connection that emits log entries for the given deployment in real time as they arrive from Kafka. A keep-alive heartbeat is sent immediately on connect and every HEARTBEAT\_INTERVAL\_MS. The first frame is a session event carrying { expiresAt }; when the session cap elapses a terminal session-ended event ({ reason }) is sent right before the stream closes.

#### URL Parameters

- **deployment_uid** (required)
- **environment_uid** (required)
- **project_uid** (required)

#### Headers

- **authorization** (optional)
  Use a bearer token to authenticate if you're not using the authtoken header. Format: Bearer <token>. If provided, the organization\_uid header isn't required.
- **authtoken** (optional)
  Use an authentication token if the Authorization header isn't provided. \*\*Requires the organization\_uid header.\*\* When using authtoken authentication, you must explicitly provide the organization\_uid header. The organization\_uid cannot be derived from project\_uid for Launch REST APIs.
- **x-cs-api-version** (optional)
  Enter the API version. Default is 1.0
- **organization_uid** (optional)
  ⚠️ \*\*REQUIRED when using authtoken authentication\*\* - you must explicitly provide this header. Optional with Authorization Bearer token (organization\_uid can be derived from the token).

#### Sample Response

```json
text/event-stream. Frames: a `session` event ({ expiresAt }) first, then log frames ({ timestamp, message, source }) interleaved with empty heartbeats, and finally a `session-ended` event ({ reason }) at the cap.
```