# Logs and metrics

> Read build and runtime logs and see requests, memory and CPU for each service.

Source: https://daster.io/docs/hosting/logs-and-metrics/ · Last updated: 2026-11-01

## Runtime logs

Open a service in **Compute** and choose its **Logs** tab.

- Filter with **All levels**, **Errors** or **Warnings**, search text, and pick a time range from 15 minutes to 7 days.
- **Refresh logs** and **Auto-refresh** fetch new lines; **Load older lines** pages back.

## Build logs

Open a deployment. The **Build / Runtime** switch shows that deployment's build log (followed live while it builds) or the lines its containers wrote. **Download** saves every kept line as a text file.

## What is kept

| Kind        | Kept                                                                                   |
| ----------- | -------------------------------------------------------------------------------------- |
| Build log   | The newest 2,000 lines per deployment, for 30 days                                     |
| Runtime log | The newest 10,000 lines per app, for 7 days (at most 20 lines a second, bursts of 200) |
| Metrics     | 7 days                                                                                 |

Every line is redacted before it is stored: your variable values, GitHub tokens and `Authorization` values become `[REDACTED]`. Lines are at most 8,192 characters.

The level is inferred from a JSON `level` or `severity` field, then from an HTTP status (5xx is an error, 4xx a warning), then from words such as `error` or `warning`. Other lines are `info`.

## Metrics

A service's overview shows **Requests per minute**, **Memory** and **CPU** cards. Choose **Last hour**, **Last 24 hours** or **Last 7 days** above them. A gap in a line means no data (the app was stopped), never zero.

**Compute › Insights › Alerts** lists problems found in your services, deployments and runs. It is a status view; it does not send notifications.

## With the API

```http
GET /v1/projects/{projectId}/compute/services/{serviceId}/logs?organizationId={organizationId}&since=1h&level=error
```

- Filters: `level` (`info`, `warn`, `error`), `stream` (`stdout`, `stderr`, `system`), `q` (plain text, at most 100 characters) and `since` (`15m`, `1h`, `24h`, `7d`).
- Page size: `limit`, default 200, at most 500. Pass `older` as `before` to page back, or poll with `after=<next>` to tail.
- Build log: `GET …/services/{serviceId}/deployments/{deploymentId}/logs`.
- Metrics: `GET …/services/{serviceId}/metrics?window=1h|24h|7d`.
