---
search:
  tags:
    - Observability
    - GET
seo:
  description: >-
    The last lines of what the app printed (console.log, console.error,…
    Reference for the GET /v1/apps/{project}/logs endpoint in the Sproutboat
    Cloud API.
sidebar:
  label: Recent log lines of a running app
  badge: GET
title: Recent log lines of a running app
type: openapi-operation
---
The last lines of what the app printed (`console.log`, `console.error`, uncaught errors) and of the host's own lines about it
(a request line per request, a worker that stopped), oldest first, as plain text lines. The control plane stores none of it: the
lines come from the app's host, which keeps up to about 16 MiB or 7 days of output per app (`retention` in the answer).
Lines have **no level** here (the host does not record one) and no time in their text; `times` has the time each line was stored, in the same order (the live stream has times too).

What is removed before a line is returned: the query string of every request URL in the host's request lines, and every value
of the app's secrets of 8 characters or more (also URL-encoded, JSON-escaped, base64 and hex), replaced by `[redacted]`.
Redaction is best effort: a secret the app slices, hashes or re-encodes is not matched, and a value shorter than 8 characters
never is. A line over 16 KiB is cut with an ellipsis.

`GET /v1/apps/{project}/logs`
