---
title: Read the audit log
description: See who changed what in your organisation, filter the record by person, action and time, and read it as JSON.
related:
  - /organisation/invite-members
  - /platforms/automate-with-api-tokens
  - /cli/audit
---

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`](/cli/audit) prints the log of the organisation you use, one change a line, oldest first.

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

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

```bash
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](/organisation/invite-members) explains how to change a member's role.

## Next steps

- [Invite members](/organisation/invite-members) explains who can do what.
- [Automate with API tokens](/platforms/automate-with-api-tokens) makes a token with `audit:read`.
- [Manage billing](/organisation/manage-billing) explains the billing entries.
