# Audit log

> See who did what in your workspace, whether a person, AI, an MCP client or an automation did it, and on whose behalf.

Source: https://docs.deerapp.co/en/admin/audit_log/

## What the audit log records

Every change in Deer runs through an action, and every action leaves an event in the workspace audit log. That includes actions a person takes in the interface and actions taken by AI, AI agents, MCP clients and automations such as reminders. Deer also records attempts that did not go through: actions refused for lack of permission, actions that failed, and requests waiting for approval.

Each event holds:

| Field | What it tells you |
| --- | --- |
| **Time** | When the action ran. |
| **Actor** | The person, or the AI or MCP client, that ran it. |
| **Actor type** | **Person**, **AI**, **MCP** or **Automation**. |
| **On behalf of** | For AI, MCP and automation events, the person the actor worked for. |
| **Action** | The action that ran, such as **Create task** or **Invite member**. |
| **Module** | The module the action belongs to. |
| **Risk** | **Read**, **Write**, **Destructive** or **External**. |
| **Result** | **Success**, **Denied**, **Failed** or **Awaiting approval**. |
| **Surface** | Where the request came from: the app or MCP. |
| **Run id** | For AI events, the run the step belonged to. |

When an action targets a record, such as a task or a file, the event links to it.

The audit log records which action ran, by whom and on which record. It does not show the values typed into the action, the content of messages or the content of files.

## Who can view it

Owners and admins can open the audit log. Members and guests cannot. Nobody can edit or delete an event from the log, including the owner.

## Open the audit log

#### Open Settings
Open **Settings**, then **Audit log** under **Workspace**.

#### Read the summary
Four tiles at the top count **Events recorded**, events **By non-human actors**, events that were **Denied or failed**, and requests **Awaiting approval**.

#### Browse the events
The table shows workspace events newest first. Select **Load older events** to keep browsing.

## Filter and search

Use the toolbar above the table to narrow the list:

- **Date range**. Choose the last 7, 30 or 90 days, or **All time**. The log starts with the last 30 days.
- **Search** by a person's name or an action.
- **Actor type**: choose **All**, **People**, **AI**, **MCP** or **Automation**. Choose **AI**, **MCP** and **Automation** in turn to review everything non-human actors did.
- **Status**: open **Any status** and choose a result, for example **Denied** to see refused attempts.

The table at the bottom shows how many events match out of the total.

## Read an event

Select a row to open the event in a side panel. The panel shows the actor, a short summary and every field in the table above. If the event acted on a record that still exists, select **Open record** to go to it.

Use the panel to answer questions such as:

- Did AI create this task, and who asked it to? Look at **Actor type** and **On behalf of**.
- Was an MCP client refused? Filter by **MCP** and the **Denied** status.
- Is anything waiting for someone's decision? Filter by **Awaiting approval**. For MCP, this is a request that is waiting for its owner to approve it in Deer.

## Export the full log

Owners and admins can select **Export CSV** to download every event matching the selected range and filters, including older rows the table has yet to load. If the button is unavailable after filtering, load older events until a matching event appears.

The owner can also download the log as part of the workspace archive.

#### Open General
Open **Settings**, then **General**.

#### Download the archive
Under **Export data**, select **Download archive** next to **Export workspace data**.

The ZIP archive includes a file named `audit.jsonl`, with one line per event in the order they happened. Each line has the time, the person's id, the actor type, the AI or MCP client id when there is one, the action id, the result and the target record's id. The export itself is recorded in the audit log. You can export up to five times an hour. See [Data and privacy](https://docs.deerapp.co/en/admin/data_and_privacy/#export-workspace-data) for everything else in the archive.

> [!NOTE]
> The full workspace archive is available to the owner. Admins can download CSV from the audit log.

## How long events are kept

There is no fixed retention period in the beta, and you cannot set one. Events stay for as long as the workspace exists, with three exceptions:

- **Removing a member** erases the events that person performed in this workspace, including AI, MCP and automation events run on their behalf. The removal itself is recorded under the owner or admin who did it.
- **Deleting an account** erases that person's events in every workspace. Deer keeps a record that an account was deleted, without the person's identity.
- **Deleting the workspace** erases its audit log with all its other data.

If you need a copy of the log before removing someone, the owner can [export it](#export-the-full-log) first.

## Non-human actions

The audit log is where Deer's hybrid model becomes visible. A person and an AI agent run the same action, through the same permission check, and leave the same kind of event. The only difference is the actor type and the person named in **On behalf of**.

Destructive and external actions by non-human actors wait for a person's approval. A request still waiting appears in the log as **Awaiting approval**. Read more in [Approvals](https://docs.deerapp.co/en/ai/approvals/) and [The hybrid model](https://docs.deerapp.co/en/developers/hybrid_model/).
