---
title: "Retrieve captured broker and service log output"
method: GET
path: "/api/observability/logs"
tags: ["Observability"]
---

# Retrieve captured broker and service log output

`GET /api/observability/logs`

## Request

- Base URL: `https://api.cernion.de`
- URL: `https://api.cernion.de/api/observability/logs`
- Auth: none declared

Returns recently captured logger output from the Moleculer broker and loaded services. Messages are persisted locally in PouchDB with token and PII redaction for production-safe debugging.

## Query parameters

- `level` 'fatal' | 'error' | 'warn' | 'info' | 'debug' | 'trace'
- `service` string
- `action` string
- `contains` string
- `limit` integer
- `sinceMinutes` integer
- `since` string, date-time
- `until` string, date-time
- `token` string

## Response `200`

Captured log messages

- object
  - `count` integer
  - `generatedAt` string, date-time
  - `logs` object[]
    - `timestamp` string, date-time
    - `level` string
    - `service` string
    - `action` string, nullable
    - `source` string
    - `nodeID` string, nullable
    - `requestOrigin` string, nullable
    - `errorType` string, nullable
    - `message` string

---

[API](https://skmtc.dev/cernion/apis/cernion-energy-tools-api.md) · [All operations](https://skmtc.dev/cernion/apis/cernion-energy-tools-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cernion/apis/cernion-energy-tools-api/revisions/cdb94473b538?raw)
