# Audit log

Source: https://openpanel.sh/docs/monitoring/audit-log

The organization's record of every change to projects, services, variables, deployments, domains, servers, access and API keys, who made it and from where, and how to read it.

Every organization keeps an audit log. Each change to its projects and what is in them, its servers, project access and API keys adds one entry: who made it, when, from which address, and what changed.

- **Written with the change.** An entry is written in the same database transaction as the change it records, so a change is never recorded without happening, nor the other way round.
- **Never changed.** Entries cannot be edited or deleted, not even by OpenPanel's own code: the database refuses it.
- **Never a secret.** An entry says which variable changed, never its value.

## Who can read it [#who-can-read-it]

The **Owner** and **Admins**, in the console, the CLI and the API. An API key reads it only if its scope is **admin** and it is not limited to some projects. See [Roles](/docs/members/roles).

## Read it [#read-it]

The newest entries come first.

<Tabs items={["Console","CLI","API"]}>
<Tab value="Console">
Open **Organization settings** and its **Audit log**. It lists 50 entries a page: the time, what happened, and the resource with its project. Click an entry for who made it, from which address and what changed.

- **Filter** by **Project**, **Kind of change**, **Person**, and **From** and **Until** days. Days are whole days in UTC; times are shown in your own time zone. The filters are in the page's address, so a filtered view can be shared.
- **Download CSV** saves the entries on the page as a spreadsheet file.
</Tab>

<Tab value="CLI">
```sh
openpanel audit --project shop --limit 20
```

```text
WHEN              WHO                 ACTION          RESOURCE                                      FROM
2026-12-01 19:53  owner@example.test  project.update  project 01a2332a-ab5d-7001-8b93-c7be75e687d9  203.0.113.7
2026-12-01 19:53  owner@example.test  project.access  member 529a9133-1e32-49c4-bc98-10d1200df60e   203.0.113.7
```

| Option | |
|---|---|
| `--project <project>` | Only entries about this project |
| `--action <action>` | One action, such as `service.update`, or every action of a kind, such as `service` |
| `--limit <n>` | How many entries, 1 to 100; 50 by default |

Add `--json` for every field of each entry.
</Tab>

<Tab value="API">
```sh
curl "https://openpanel.sh/api/v1/audit?action=service&limit=20" \
  -H "Authorization: Bearer $OPENPANEL_TOKEN"
```

| Query | |
|---|---|
| `projectId` | Only entries about this project |
| `actorId` | Only changes made by this person, by their user ID, including through their API keys |
| `action` | One action, such as `service.update`, or every action of a kind, such as `service` |
| `resourceId` | Only entries about this service, domain, key or other resource |
| `since`, `until` | From this time, and before this time, in ISO 8601 |
| `limit` | 1 to 100; 50 by default |
| `cursor` | The `nextCursor` of the previous page |

The answer is `{ "data": [...], "nextCursor": ... }`. Pass `nextCursor` back as `cursor` for older entries, until it is `null`. See [Read the audit log](/docs/api/organization/read-the-audit-log) in the API reference.
</Tab>
</Tabs>

## What an entry holds [#what-an-entry-holds]

```json
{
  "id": "01a2332b-96c9-7007-9813-ddcc80f4b37a",
  "createdAt": "2026-12-01T19:53:44.390Z",
  "actorType": "key",
  "actorId": "0a6d0b8f-9903-4fa2-8b29-b040b89c6802",
  "actorLabel": "owner@example.test",
  "keyId": "01a23325-b8ff-7007-81ee-6d86df4d57e3",
  "action": "project.access",
  "resourceType": "member",
  "resourceId": "529a9133-1e32-49c4-bc98-10d1200df60e",
  "projectId": "01a2332a-ab5d-7001-8b93-c7be75e687d9",
  "before": { "access": "none" },
  "after": { "access": null },
  "ip": "203.0.113.7"
}
```

| Field | What it is |
|---|---|
| `actorType` | `user` for a person signed in (the console, the CLI or an AI client), `key` for an API key, `system` for OpenPanel's own work, such as a deploy started by a push |
| `actorId`, `actorLabel` | The person, by user ID and email address. For an API key, the person who made it. For OpenPanel's own work, `actorLabel` names the job, such as `job push` |
| `keyId` | The API key used, if one was |
| `action` | What happened, such as `service.update` |
| `resourceType`, `resourceId`, `projectId` | What it happened to, and in which project |
| `before`, `after` | For a change, only the fields that changed, before and after |
| `ip` | The address the request came from |

## What is recorded [#what-is-recorded]

| Kind | Actions |
|---|---|
| Projects | `project.create`, `project.update` (name or visibility), `project.delete`, `project.access` |
| Services | `service.create`, `service.update`, `service.delete`, and `service.hook.create`, `service.hook.renew`, `service.hook.delete` for [push to deploy](/docs/deploy/push-to-deploy) |
| Volumes | `volume.create`, `volume.delete` |
| Variables | `variable.create`, `variable.update`, `variable.delete`, `variable.export` (a `.env` file with secret values was taken out) |
| Deployments | `deployment.create`, `deployment.rollback`, `deployment.status` |
| Domains | `domain.create`, `domain.rename`, `domain.delete` |
| Servers | `server.disconnect`, `server.delete`, `server.access.reveal` (the console password was shown), `server.password.change` |
| API keys | `apikey.create`, `apikey.revoke` |
| Members | `member.removed`, `member.left`, `member.deleted`, with the keys, project access, invitations and Git accounts that went with them |

Not recorded today: connecting a server, joining it to the private network, devices, Git accounts, invitations, role changes, organization settings, and signing in.

## Keep a copy [#keep-a-copy]

There is no export button. To keep the log elsewhere, page through `GET /audit` and save the JSON, for example once a day with `since` set to the previous run.