Magic Apps
Logs and metrics
Read deploy logs, what your processes print, every HTTP request, and CPU and memory over time.
Deploy logs
Each deploy has a log of its build, its release command and its rollout. It streams while the deploy runs and stays with the deploy afterwards.
When a deploy fails, the log ends with what you need: the failed build step’s last 15 lines, the release command’s output, or the last 150 lines of a process that crashed. See When a deploy fails.
Application logs
Everything your processes print to standard output and standard error, per process.
- Search the text, and choose a time range.
- With Live on, the newest lines refresh every 5 seconds.
- A line shows up about 10 seconds after it’s printed.
- Standard error is shown as standard output.
- Lines are kept for 5 days.
HTTP logs
Every request the web process’s edge served, including those answered from its cache.
Each request has its time, status, cache status, bytes sent, client address, country, edge location, scheme, host, path, URL, user agent, referrer and TLS fingerprint. There is no request method and no duration.
- Filter by status, part of the URL, country, edge location, cache status or part of the user agent.
- The last part of each client IP address is set to zero.
- Requests are kept for 3 days.
Logs aren’t kept longer than this, and can’t be forwarded elsewhere yet.
Metrics
For each process: CPU in cores, memory, traffic, and the number of instances, over the last hour, 24 hours, 7, 30 or 90 days. The last hour is shown by the minute, and refreshes every minute.
CPU and memory are shown both per instance and in total across instances. For a period in which the number of instances changed, the total is an estimate.
The dashboard also shows each instance as it is now: its region, status, CPU, memory and restarts.