Skip to content

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:

TabContentsWho can open it
Audit logTrail of staff, billing, and system actions.All staff
Control plane logPanel 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 ​

CardContents
Events todayNumber of events today among the loaded entries.
Administrative changes todayChanges by admin and staff accounts today.
Failed actionsActions whose result was not a success.

Searching and filtering ​

  1. Choose the number of entries in Load: Latest 100, 200, 500, or 1000.

  2. Search by actor, action, target, or reason in the search box.

  3. Filter by:

    FilterChoices
    DateAll loaded, Last 24 hours, Last 7 days, Last 30 days
    ActorA specific actor, shown with its kind: Admin, Staff, Billing API, or System
    ActionAction code, e.g. account.suspend
    ServerRelated server
    AccountRelated account
    ResultSuccess, Failed, Queued

Filters work on the entries already loaded. If what you are looking for is older, raise the Load number first.

Table columns ​

ColumnContents
TimestampWhen it happened, in the browser's time zone.
ActorStaff email, API key name, or system, plus the actor kind. For billing actions, it also says "for …" (on behalf of which client).
ActionAction code.
TargetObject type and ID.
ResultSucceeded, 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:

bash
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.

OptionDescription
Minimum levelDebug+, Info+, Warning+, or Error.
PeriodSince restart, Last 15 minutes, Last hour, or Last 24 hours.
EntriesThe last 100, 200, 500, or 2000 entries.
Search textText 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:

bash
journalctl -u moorcp-shared

Only 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.

See also ​

MoorCP Shared, a shared hosting panel for server fleets.