---
title: "Logs & Metrics"
description: "Stream real-time Access, Error, and PHP logs with structured filtering, and inspect CPU, memory, bandwidth, and HTTP status metrics across 1h to 30d windows."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.hostedez.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Logs & Metrics

Every Hosted EZ site includes real-time log streaming and historical resource metrics under the **Logs & Metrics** tab in `app.hostedez.com`.

## Real-Time Site Logs

Hosted EZ tails your site's server logs live with chronological interleaving across streams and cursor-based incremental polling.

### Available log sources

| Source | Description | Static Sites | PHP / CMS Sites |
| --- | --- | --- | --- |
| **All** (`all`) | Interleaved timeline of all active log streams for the site | Yes | Yes |
| **Access** (`access`) | Structured HTTP request logs (method, URI, host, status, bytes sent, duration in ms, cache status, client IP) | Yes | Yes |
| **Error** (`error`) | Web server error and warning logs | Yes | Yes |
| **PHP** (`php`) | PHP error log, PHP-FPM pool messages, and PHP slow-request logs | No | Yes |

> **Static sites omit PHP logs**
>
> Static sites are served directly by nginx with zero PHP execution, so the **PHP** log stream is automatically hidden in the dashboard for static sites.

### Filtering and searching logs

Use the toolbar at the top of the log viewer to narrow down issues:

- **Source selector**: Switch between `All`, `Access`, `Error`, and (on PHP/CMS sites) `PHP`.
- **Severity level**: Filter to `info`, `warn`, or `error`. Access log requests automatically map `2xx`/`3xx` to `info`, `4xx` to `warn`, and `5xx` to `error`.
- **HTTP status filter**: Filter access log entries by status class (`2xx`, `3xx`, `4xx`, `5xx`) or an exact 3-digit HTTP status code (such as `404` or `502`).
- **Text search**: Case-insensitive substring search across log messages and raw lines (up to 128 characters).

### Rate limits and rotation

- Log tail polling is rate-limited to **60 requests per minute** per user and site. If exceeded, the API returns HTTP `429` with a `Retry-After` header.
- Signed cursors track file inode and byte offset across log rotations. When a log file rotates on disk, the viewer automatically resets cleanly to the new file.

## Resource & Traffic Metrics

The **Metrics** section charts your site's runtime resource consumption and HTTP traffic alongside your plan limits.

### Time ranges

Switch between four built-in time windows:

- **`1h`** — High-resolution recent activity for live troubleshooting and launch checks.
- **`24h`** — Default daily view for spotting traffic spikes or recurring cron load.
- **`7d`** — Weekly trend view.
- **`30d`** — Monthly capacity and bandwidth review.

### Charts and plan limits

Metrics include both summary totals and time-bucketed series compared against your active plan caps:

- **CPU usage**: Measured against your plan's CPU quota percentage.
- **Memory usage**: Measured against your plan's per-site memory limit (`memoryMaxBytes`).
- **Bandwidth & egress**: Outbound bytes transferred and egress rate limit (`egressRateMbps`).
- **HTTP responses**: Request volume and status code distribution (`2xx`, `3xx`, `4xx`, `5xx`).

> **Troubleshooting high CPU or 5xx spikes**
>
> If you see a spike in `5xx` responses or CPU utilization on a PHP/CMS site, switch to the **PHP** and **Error** log streams for the same timestamp window, or review recent runs on the [Cron Jobs](/operations/cron-jobs) tab and [Caching & CDN](/domains/caching-and-cdn) settings.

Source: https://docs.hostedez.com/operations/logs-and-metrics/index.mdx
