Logs and audit
This page covers the Logs & Audit menu: the audit log of every action in the panel, the control plane log for troubleshooting, CSV export, and where agent logs live on hosting servers.
This menu has two tabs under Log type:
| Tab | Contents | Who can open it |
|---|---|---|
| Audit log | Trail of staff, billing, and system actions. | All staff |
| Control plane log | Panel process log for troubleshooting. | Admins only |
Roles other than admin only see the audit log, without a tab choice.
Audit log
The audit log records who did what, when, to which object, for what reason, and with what result. Examples of what is recorded:
- sign-in, sign-out, 2FA activation, password changes, and staff changes;
- creating, suspending, unsuspending, changing the package of, and terminating accounts, with their reasons;
- changes to access controls, billing relationships, websites, DNS, and settings;
- billing actions on behalf of clients;
- automatic panel actions, such as nameserver corrections or DNS cluster sync.
Summary cards
| Card | Contents |
|---|---|
| Events today | Number of events today among the loaded entries. |
| Administrative changes today | Changes by admin and staff accounts today. |
| Failed actions | Actions whose result was not a success. |
Searching and filtering
Choose the number of entries in Load: Latest 100, 200, 500, or 1000.
Search by actor, action, target, or reason in the search box.
Filter by:
Filter Choices Date All loaded, Last 24 hours, Last 7 days, Last 30 days Actor A specific actor, shown with its kind: Admin, Staff, Billing API, or System Action Action code, e.g. account.suspendServer Related server Account Related account Result Success, Failed, Queued
Filters work on the entries already loaded. If what you are looking for is older, raise the Load number first.
Table columns
| Column | Contents |
|---|---|
| Timestamp | When it happened, in the browser's time zone. |
| Actor | Staff email, API key name, or system, plus the actor kind. For billing actions, it also says "for …" (on behalf of which client). |
| Action | Action code. |
| Target | Object type and ID. |
| Result | Succeeded, failed, or queued. |
Entry details
Click a row to open the Audit details panel:
- the Reason entered by staff;
- On behalf of for billing actions;
- Actor IP;
- Details: extra data, such as parameters or an error message;
- Audit metadata: Event ID, Category, Result code, and Object ID.
TIP
The history of one account is also in account details › Activity Log. Job details also show the audit entries that refer to that job.
Exporting to CSV
Click Export logs. The panel downloads the file moorcp-audit-YYYY-MM-DD.csv with the currently filtered rows, with the columns:
time, actor_kind, actor, on_behalf_of, source_ip, action, object_type, object_id, reason, result, details.
The export only includes entries that are loaded and pass the filters. To export more, raise Load before exporting.
INFO
Through the API, the audit log is read with GET /v1/audit. See API reference.
From the command line
moorctl audit prints one account's audit entries in the terminal (time, action, result, actor, details), through the API:
moorctl audit jane --since 2h --action website.--since limits the time range, --action keeps actions that start with the given prefix, and --limit sets the number of entries (default 100). moorctl needs MOORCTL_URL and MOORCTL_API_KEY. See CLI.
Control plane log
The Control plane log tab shows the panel's own process log. Use it to track errors that are not visible in the GUI, such as failures to reach an agent or SMTP.
| Option | Description |
|---|---|
| Minimum level | Debug+, Info+, Warning+, or Error. |
| Period | Since restart, Last 15 minutes, Last hour, or Last 24 hours. |
| Entries | The last 100, 200, 500, or 2000 entries. |
| Search text | Text to look for; press Enter. |
Click Refresh to fetch the latest entries.
INFO
The panel keeps the last 5,000 entries in memory since the last restart. They are lost when the panel restarts. The full history stays in the panel server's journal.
For the full history, run on the panel server:
journalctl -u moorcp-sharedOnly administrators can open the control plane log, because it contains hostnames, emails, and internal error messages.
Agent and server service logs
Agent logs are not in this menu. Open them from the server details: Servers › (server) › Services › moorcp-agent › Logs. Logs of other services (web server, PHP-FPM, MariaDB, email, and so on) open the same way. See Servers.
Website logs (access, error, and PHP errors) are in website details › the Logs tab. See Websites.
