Skip to content

Audit log

Hostashi writes every change made in the panel or through the API to an audit log: who did it, when, what it was and what it concerned. Failed logins and rejected API tokens are in it too. Entries cannot be changed or deleted, not even by an admin.

For: admins. Managers and users do not see the audit log.

View the log

  1. Open Audit log in the Administration part of the menu.
  2. The newest entries come first. Show older entries loads the next 50.
  3. Narrow the list with the filters above the table:
  4. Action: one action, such as site.create, or a whole group, such as site.* (all).
  5. Account: the exact username. An account that was deleted since keeps its name in the log and shows (deleted).
  6. Target: part of what the action concerned, usually a site, database or account name.
  7. IP address: the exact address the change came from.
  8. From and To: days in your browser's time zone, both included.

The filters are part of the address, so you can bookmark or share a filtered view.

The IP address column shows the address of the browser or API client that made the change. Work the panel does by itself, such as scheduled jobs, has no address.

The Details column shows what the panel recorded with the action. For an update it lists each field that changed, with the old value struck through and the new value next to it. Passwords, keys and cron commands never appear: the log only says that they changed.

Export

CSV and JSON at the top right download the log with the filters you set, oldest entry first, including the IP address and the changes of each entry. CSV opens in a spreadsheet; JSON suits scripts. Each export is itself written to the log, with its format and filters.

In the CSV file a cell that starts with =, +, - or @ gets a leading ', so that a spreadsheet does not run a crafted username as a formula.

API

The same data is available to API tokens with the scope audit:read, only for admins:

  • GET /api/v1/audit with the optional query values action, actor, target, ip, since, until (RFC 3339), limit (1 to 200) and before (the next value of the previous page).
  • GET /api/v1/audit/actions lists every action in the log.
  • GET /api/v1/audit/export?format=csv or format=json with the same filters.