Read site logs and investigate errors

In this guide, we will read a site’s server and application logs, connect related timestamps and preserve useful evidence.

In this guide, we will read a site’s server and application logs, connect related timestamps and preserve useful evidence. The screenshots contain invented log entries. We will not send requests, edit application files, clear logs or signal any server service.

Demonstration: Herne 3.55.43, English interface and narration, fictional Northstar Studio logs and documentation-only network addresses. Screens are narrated captures, not live operations. No host log, real request, application file write, cleanup or service signal is used. Written guidance and selectable subtitles are available in six languages.

Watch the walkthrough

English audio · 6 min 13 sec · Subtitles in all six site languages.

1. Define the incident and open Logs

In this guide, we will read a site’s server and application logs, connect related timestamps and preserve useful evidence. The screenshots contain invented log entries. We will not send requests, edit application files, clear logs or signal any server service.

Before opening a log, record the affected domain, time zone, approximate time, requested path and observed response. Note whether the issue concerns a web request, deployment, scheduled task or background job. These use different evidence; a successful deployment entry does not prove that a later web request succeeded.

Open the intended site, then choose Logs from Runtime. Verify the domain below the page heading and the selected log type. Access and error logs belong to the site. PHP-FPM and mail logs are shared server sources restricted to administrators, even though their buttons appear within a site workspace.

Source Scope Read access
Access log Site Nginx requests Authorized site reader
Error Log Site Nginx messages Authorized site reader
PHP-FPM log Shared PHP-version file Administrator
Mail log Shared Postfix/Dovecot; read-only Administrator
Laravel log Conventional application file; opens editor Authorized site reader
Runtime menu showing Logs for the fictional studio.example.test site.

2. Read access entries and their limits

The access log records requests observed by the site’s Nginx server. Read the timestamp and offset, request method and path, HTTP status and response size together. The example shows a failed health request followed by a later successful one. Client addresses and user agents provide context but do not reliably identify a person.

The server-log view reads up to the last two hundred lines and reverses their order, so the newest physical line is first. It is not a complete archive or a live stream. Multiline records can therefore be separated or reversed. Preserve original ordering from an authorized source when a full stack trace or earlier history is needed.

A successful HTTP status does not prove that the application operation or background job completed correctly. A missing path and an upstream failure also need different investigations. Compare the response with the user-visible symptom. Requests served entirely by a proxy cache may never reach this origin log.

Invented Nginx access entries with the latest successful health request above an earlier 504 response.

3. Correlate Nginx and PHP-FPM evidence

Choose Error Log and look near the incident time. Read severity, message, domain and request context. An upstream timeout is a clue about a delayed response, not proof of a particular code defect or a reason to raise limits immediately. A missing static file may be unrelated to the failing application request.

Compare access and error entries using the same domain, path and time window. Check time zones and offsets rather than assuming every timestamp uses your browser clock. Matching times suggest a relationship but do not uniquely identify a request under concurrent traffic. Use an application request identifier when one is actually available.

The PHP-FPM log is shared for the selected PHP version and is administrator-only. A pool warning may concern another site, so verify its pool identity and time. A capacity warning calls for workload and memory review, not an automatic configuration change. Also inspect the relevant application and service evidence; this file is not every PHP error source.

Invented site error log with an upstream timeout and an unrelated missing static file.
Shared PHP 8.4 FPM log showing a fictional pool-capacity warning.

4. Inspect the application log safely

Laravel log opens the file manager editor for storage slash logs slash laravel dot log. Read the path and content carefully. This is an editable file screen with a Save button, not a dedicated read-only log viewer. Do not type or save while investigating; accidental edits would replace application log content.

The shortcut points to one conventional file. Your application may use dated files, another channel or an external destination. An absent or quiet file therefore does not prove that Laravel recorded no error. Review the application’s effective logging configuration and authorized log destination, while keeping environment values and credentials private.

Administrators may also see Laravel log format. That workspace manages application logging changes; it is separate from reading a log. Existing formatting can affect how much exception detail is retained. Check the original message and context before interpreting a short trace, and arrange any format change as its own reviewed operation.

storage/logs/laravel.log

The Laravel shortcut reads the complete text file through File Manager, unlike the bounded server tail. The editor preserves the file’s own order. Large files or rotated history need a retrieval method reviewed with the operator; the shortcut is not a full log archive.

File Manager editor for storage/logs/laravel.log with synthetic content and an unused Save button.

5. Handle mail, empty views and refresh

The Mail log shows a shared Postfix and Dovecot tail for administrators and has no Clear log action. Mailbox names and recognized credential fields are masked, but other private content may remain. A sent status is evidence from one mail stage, not proof that the recipient saw the message. Investigate delivery separately.

An empty server-log view can mean an empty or missing file, or an unsuccessful read. It does not distinguish every cause. Check the selected source, domain, permissions and helper readiness with the responsible operator. Do not create files, broaden permissions or restart services merely to make entries appear.

Refresh reloads the selected server-log source and reads its tail again. It does not restart the application or follow the file continuously. If a separate authorized check is needed, agree on the action and expected result first, then compare the new entries and actual application response. Avoid repeatedly triggering failing work.

Administrator-only shared mail log with masked mailbox examples and no Clear log button.
Empty or missing site error log message with its selected source path.

6. Preserve evidence and separate cleanup

Before any cleanup, preserve the relevant original evidence in an approved private location with the domain, source and time zone. Share only the necessary redacted excerpt. Check URLs, query strings, addresses, headers, stack traces and application messages for private data. Do not assume that access, error or Laravel logs have automatic secret masking.

Clear log permanently truncates the selected current file, not just the two hundred displayed lines. The panel then asks the writing daemon to reopen its log descriptor. This is not a repair or a service restart, and there is no undo in this screen. Preserve evidence and obtain explicit authorization; we cancel the demonstration dialog without submitting it.

Finish with the symptom, site, time window, source and a concise evidence excerpt. Separate what the log proves from your working explanation. Agree a targeted next step with the responsible operator, then verify the real application result. A quiet log or a cleared file alone is never confirmation that the original problem has been resolved.

The PHP-FPM file is shared by its PHP version: clearing it can erase evidence belonging to other sites. Clearing a server log does not remove rotated archives, change application logging channels or clear the Laravel file opened in the editor. If the operation is separately authorized, verify its actual outcome; a quiet file does not establish recovery.

Unsubmitted Clear log confirmation warning that all entries in the selected file will be permanently deleted.
Herne documentation