> ## Documentation Index
> Fetch the complete documentation index at: https://docs.turen.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Audit Log

> Track all administrative actions in your organization

The audit log provides a complete, immutable record of administrative actions taken in your Turen organization.

## What's Logged

The following actions create audit log entries:

| Category         | Actions                                                    |
| ---------------- | ---------------------------------------------------------- |
| **API Keys**     | Key created, key revoked                                   |
| **Invitations**  | Invitation sent, invitation accepted, invitation cancelled |
| **Members**      | Role changed, member removed                               |
| **Organization** | Organization settings updated                              |
| **Policy**       | Policy updated                                             |
| **Auth**         | Login, logout, signup                                      |

## Viewing Audit Logs

Navigate to **Platform Settings > Org Settings > Audit Log** (`/settings/audit-log`) to browse the full log. Each entry shows:

| Field           | Description                           |
| --------------- | ------------------------------------- |
| **Timestamp**   | When the action occurred              |
| **Action**      | What was done (with color-coded icon) |
| **Resource ID** | What was affected                     |
| **Actor**       | Who performed the action (user email) |

Click any log entry to expand its details, which include:

* **Audit ID**: Unique identifier for the log entry
* **Resource type**: Category of the affected resource (API Key, User, Invitation, etc.)
* **IP address**: Source IP of the action
* **Details**: Additional context in JSON format

## Filtering

Use the filter bar and time range controls to narrow down the log:

* **Time range**: Quick-select pills: 1h, 24h, 7d, 30d, or 90d
* **Action**: Filter by specific action type (e.g., "API Key Created", "Role Changed")
* **Resource**: Filter by resource type (e.g., API Key, User, Policy)
* **User Email**: Free-text search by the actor's email address

Filters are reflected in the URL, so you can bookmark or share filtered views.

## Use Cases

<CardGroup cols={2}>
  <Card title="Compliance" icon="file-check">
    Demonstrate to auditors that access and changes are tracked and attributable.
  </Card>

  <Card title="Incident Investigation" icon="magnifying-glass">
    Trace back who made a change and when, if something goes wrong.
  </Card>

  <Card title="Change Management" icon="clock-rotate-left">
    Track when policies were modified and by whom.
  </Card>

  <Card title="Access Review" icon="users">
    Review who was added or removed from the team and when.
  </Card>
</CardGroup>

## Retention

Audit logs are retained for 1 year on both Solo and Teams plans. They cannot be modified or deleted.
