luna audit
Read an organisation's audit log, the record of every change made through Luna's API.
luna audit prints an organisation’s audit log: who changed what, when, and how the request ended.
luna audit --since 24h
Reference
luna audit [OPTIONS]
| Option | Type | Default | Does |
|---|---|---|---|
--since <SINCE> |
moment | None | Prints the first entries from this moment on: 24h, "2h ago", 2026-11-09T10:00:00Z, or milliseconds since the Unix epoch. |
--action <ACTION> |
text | None | Prints only actions that hold this text, such as DELETE or /deploy. |
--actor <ACTOR> |
text | None | Prints only what this person did, by email. |
--limit <LIMIT> |
number | 200 |
Prints at most this many entries, up to 5000. |
--json |
flag | Off | Prints the entries as one JSON document. |
--org <ORG> |
text | LUNA_ORG, then the folder’s project’s, then the one luna orgs use chose |
The organisation, by name. |
--token <TOKEN> |
text | LUNA_TOKEN, then your login |
An API token or account key to act with. |
Each line gives the time in UTC, who made the change, the action and the HTTP status it ended with.
Good to know
- Every request that creates, changes or deletes something through the API is recorded, including ones that were refused. Reads are not.
- An action is the method and the route, such as
POST /_luna/deployorDELETE /_luna/tokens/{id}. - Who is a person by email, an API token by name, or
systemfor what Luna did itself, such as a budget alert or an environment that expired. - Entries come oldest first. Without
--since, the command prints the newest entries of the last 90 days. - Reading the log needs the
owneroradminrole, or an API token with theaudit:readscope.
Examples
See the last day’s changes
luna audit --since 24h
See who deleted something this week
luna audit --since 7d --action DELETE
See what one person did
luna audit --since 30d --actor dev@example.com
Save the log since a date
luna audit --since 2026-11-01T00:00:00Z --limit 5000 --json > audit.json