Logs

Published

Updated

📜

Logs. Logs. Logs.

Every fortrabbit environment collects PHP, Apache error, access and jobs logs. Read them in the dashboard, without SSH, to find out why a request failed or a page turned white.

About logs

Every environment collects logs from the PHP runtime, the web server and background jobs. The dashboard shows them under the Logs tab of the environment.

Log sources

The dashboard groups logs into four sources. They follow the path of a request:

browser  →  Apache (web server)  →  PHP runtime (app)
            ───────────────────     ─────────────────
            access + error logs     PHP log
text

Apache accepts every HTTP request, applies rewrites and access rules, and hands it to PHP. A failed page shows up as a status code in the access log. The reason sits one layer down: in the PHP log for an error in the app, in the Apache error log for a rewrite or permission problem that never reached the app. Background work writes to the jobs log.

Only output written to stderr and stdout reaches the PHP and jobs logs. See log files in the CMS or framework if either stays empty.

PHP logs

The PHP log holds the errors of the PHP runtime: uncaught exceptions, fatal errors, warnings and notices, plus anything the code sends through error_log() or a logger such as Monolog. Each line carries a severity, from NOTICE and WARNING up to ERROR. Filter to ERROR to see what broke.

[04-Jul-2026 08:15:42 UTC] PHP Warning:  Undefined array key "email" in /data/www/src/Newsletter.php on line 42
[04-Jul-2026 08:15:43 UTC] PHP Fatal error:  Uncaught RuntimeException: Database connection refused in /data/www/src/Db.php:31
text

Look here first when a page turns white or returns a 500 error: the fatal error and its stack trace are the last ERROR line before the failed request. Notices and deprecations appear only when the error_reporting of the app includes them.

Access logs

One line per HTTP request, in the Apache combined log format: client IP, timestamp, method and path, status code, response size, referrer and user agent.

203.0.113.7 - - [04/Jul/2026:08:15:42 +0000] "GET /pricing HTTP/1.1" 200 5312 "https://example.com/" "Mozilla/5.0 …"
text

Every request Apache serves is recorded, also those rejected before the app ran. Filter by method, status or IP address to find the URLs returning 404, or to trace a burst of 503 or 504 errors back to one client.

Apache error logs

The error log of the web server: .htaccess rewrite mistakes, permission errors, denied access and requests Apache could not route. When a URL misbehaves and the PHP log stays quiet, look here.

Each line carries a severity (notice, warn, error, crit …) and often an AHxxxxx code, such as AH01630 for a request denied by server configuration. Search or filter for the code.

[Sat Jul 04 08:15:42.123456 2026] [authz_core:error] [pid 12345] [client 203.0.113.7:52134] AH01630: client denied by server configuration: /data/www/.env
text

Jobs logs

The stdout and stderr output of jobs: workers and crons. The source appears once the Jobs component is booked. Use it to confirm a cron ran on schedule and to read what a job printed before it stopped.

[2026-07-04T08:15:42+00:00] worker.INFO: Processing App\Jobs\SendInvoiceEmail {"id":"9f3c"}
[2026-07-04T08:15:43+00:00] worker.ERROR: SMTP connect failed, retrying in 60s
text

Browsing and filtering

The log view shows the newest lines first:

  • Filter by level — limit PHP, Apache error, and Jobs logs to a severity such as ERROR or WARNING.
  • Filter by method and status — for access logs, narrow down to a request method (GET, POST, …) or an HTTP status code (404, 500, …).
  • Filter by IP — filter for an IP address of an access or Apache error line, or look it up on ipinfo.io.
  • Search — free-text search across the visible lines.
  • Pick a time range — jump to a preset like today or yesterday, or define a custom day and hour. Times are UTC.
  • Follow live — keep the latest lines streaming in as new requests come in.
  • Load more — page further back through the history.

Click a level, method, status code or IP address in a line to filter for it.

Logs from a metric

Links below each metric chart open the logs for the time frame of the chart:

MetricLog
PHP response time, PHP memory, OOM killsPHP log
PHP requests, traffic, static requestsAccess log
404 and 503 errorsAccess log, filtered by status code
500 and 504 errorsPHP log and access log
Jobs memory, jobs OOM killsJobs log

A spike in a metric narrows the time frame. The log lines of that hour name the requests behind it. See metrics, logs and APM.

Downloading logs

To keep logs or analyze them elsewhere, switch to Download and pick a source and a time range. The file downloads in the browser, or a link arrives by e-mail. Large ranges take a few minutes to prepare.

Tailing logs over SSH

To follow the logs in the terminal:

  1. Log in to the environment by SSH
  2. Run frbit-tail-logs

This tails stderr and stdout as a live stream.

Log files in the CMS or framework

A CMS or framework that writes logs to its own files, instead of stderr and stdout, does not show up in the dashboard. Read those files over SSH or SFTP; the CMS or framework docs name the location.

Most CMS and frameworks can send logs to stderr. The software template sets this by ENV var where possible.

Verbose logging

Verbose or debug logging prints more detail with each error and sometimes shows errors in the browser. It slows the app down and can expose internals, so keep it to development and staging. When a production issue needs it, turn it off again afterwards.

Frequently asked

Why are my PHP logs empty on fortrabbit?

The dashboard shows only what the app writes to stderr and stdout. Many frameworks and CMS write to their own log files instead. Switch the logger to stderr, or read the files over SSH or SFTP.

#

Written by humans and AI in collaboration.

AI use & editorial processEdit on GitHub ↗