Skip to content
Luna
Esc
↑↓navigate↵open⌘Jpreview
On this page

Read the audit log

See who changed what in your organisation, filter the record by person, action and time, and read it as JSON.

When a deploy, a deleted environment or a new token surprises you, you need to know who did it and when. Luna records every change made to your organisation and its projects in the organisation’s audit log.

Read the log

luna audit prints the log of the organisation you use, one change a line, oldest first.

luna audit --since 24h

Each line says when the change happened in UTC, who made it, the action and the status the request ended with. The action is the request’s method and route, such as POST /_luna/deploy.

Without --since, the log starts at its first entry. Pass --since to read the latest changes.

Know what is recorded

The log records each request that changed something, whether it came from the CLI, the Console or the control API. Reads are not recorded.

  • Who: the person, by email, or the API token, by name. A change made with an account key also names the key.
  • What: the method and route, the path, and the tenant it was about.
  • How it ended: the status. A change Luna refused is recorded too, with its status.

Luna adds entries of its own for billing, such as a budget alert that was passed or a change of plan. Their actor is the system.

Luna does not delete entries while the organisation exists.

Filter the log

Option Does
--since Starts at a moment, such as 24h, "2h ago", 2026-11-09T10:00:00Z or milliseconds
--actor Keeps one person’s changes, by email
--action Keeps actions that contain this text, such as tokens or DELETE
--limit Returns at most this many entries, 200 by default
--org Reads another organisation’s log, by name
luna audit --since 7d --actor ana@example.com --action DELETE

Read the log as JSON

--json prints the answer as one JSON document, for a script or another tool. Its entries hold the changes.

luna audit --since 30d --json

A change’s entry has at in milliseconds since the epoch, actor, action, path, tenant and status.

Know who can read the log

Owners and admins read the audit log. An API token reads it when it holds audit:read, which only an owner or an admin can give.

Developers, viewers and billing members cannot read the log. Invite members explains how to change a member’s role.

Next steps

Was this page helpful?