---
title: "Get system logs"
method: GET
path: "/api/server/logs"
tags: ["logs"]
---

# Get system logs

`GET /api/server/logs`

## Request

- Base URL: `http://localhost:3000`
- URL: `http://localhost:3000/api/server/logs`
- Auth: none declared

Retrieve system logs with optional filtering

## Query parameters

- `since` integer: Timestamp (ms) to get logs from
- `level` 'all' | 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'fatal'
- `agentName` string
- `agentId` string, uuid
- `limit` integer

## Response `200`

System logs

- object
  - `logs` LogEntry[]
    - `level` number: Log level
    - `time` number: Timestamp of the log entry
    - `msg` string: Log message
    - `agentId` string, uuid: ID of the related agent (if applicable)
    - `agentName` string: Name of the related agent (if applicable)
  - `count` integer
  - `total` integer
  - `level` string
  - `levels` string[]

## Other responses

- `500`: Error retrieving logs

---

[API](https://skmtc.dev/elizaos/apis/eliza-os-api.md) - [All operations](https://skmtc.dev/elizaos/apis/eliza-os-api/llms.txt) - [OpenAPI document](https://skmtc.dev/elizaos/apis/eliza-os-api/revisions/d606a12682bb?raw)
