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

# Activity Log (Settings → Activity)

<Card title="Open in AthenaHQ" icon="arrow-up-right-from-square" href="https://app.athenahq.ai/settings/activity" horizontal>
  `app.athenahq.ai/settings/activity`
</Card>

## Purpose

The Activity Log provides a searchable, filterable, and exportable audit trail of every change made across your organization. It allows teams to track who performed specific actions, what resources were affected, and when those changes occurred.

This feature sits within the settings area and is exclusively available to customers on the Enterprise plan. It is primarily used by organization administrators and team leads for security, compliance, and troubleshooting workflows.

## What's on the page

* **Toolbar / filter bar**: A band below the page header containing the date range picker, filter controls, a "Clear all" link (when filters are active), and the "Export CSV" button.
* **Audit Log Timeline**: A table displaying a chronological list of all audit-logged actions, grouped by calendar day.
  * **Time**: Displays how long ago the event occurred (e.g., "2 hours ago"). Hovering over the relative time reveals the absolute date and time (e.g., "Jan 5, 2025 at 3:45 PM").
  * **Actor**: Shows who performed the action. This can be a user's name or email, an API key, or "System" for automated tasks. It includes a badge indicating the actor's role (e.g., Owner, Admin, Viewer, External, or a custom role). If a website-only member views the page, actors they do not have permission to see are masked as "Organization member" or "Organization API key".
  * **Website**: Indicates the specific website the action applied to, or displays "Organization" if the action affected the entire organization.
  * **Action**: A plain-language summary of the event (e.g., "Created prompt"), often followed by the name of the affected resource or extra context.
  * **(Unlabeled chevron column)**: A right-arrow that appears when hovering over rows that contain deeper details. Clicking the row opens the event details.
* **Table Footer**: Sits below the timeline, displaying a count like "Showing 50 of 300 events" and an animated loading indicator when fetching more rows.
* **Event details dialog**: A popup that opens when clicking a supported row. It displays:
  * **Resource**: The type, ID, and name of the affected item.
  * **Changes**: A color-coded breakdown showing exactly what changed, labeled "Before" and "After".
  * **Metadata**: Raw, advanced information related to the event.

## What you can do here

* **Filter the activity log**: Click the "Filter" button to narrow down events by specific criteria:
  * **Actor role**: Filter by Owner, Admin, Viewer, or External.
  * **Actor**: Select specific people from a dropdown.
  * **Website**: Filter by one or more websites, or select "Organization" for org-wide events.
  * **Event categories**: Filter by broad categories like "User management", "Content", "Billing", "Integration", etc.
  * **Event**: Type an action pattern (e.g., "user:*", "prompt:*") into a text field to find specific technical events.
  * **Status**: Filter by "Success", "Failed", or "Pending".
* **Filter by date**: Click the date picker to choose a preset ("Last 7 days", "Last 30 days", "Last 90 days", "All time") or select a custom date range.
* **Clear filters**: Click the "Clear all" button to instantly remove all active filters.
* **Export CSV**: Click the "Export CSV" button to download a spreadsheet of the currently filtered events.
* **Expand/collapse days**: Click on a date heading in the timeline (e.g., "Today, Oct 24, 2024") to collapse or expand the list of events for that day.
* **View event details**: Click on a specific row in the timeline to open a detailed modal showing what changed.
* **Load more events**: Scroll to the bottom of the timeline to automatically fetch and display older events.
* **Upgrade plan**: If you are not on the Enterprise plan, click the "Upgrade plan" button in the empty state to navigate to your billing settings.
* **Retry loading**: Click the "Retry" button if the page fails to verify your subscription access.

## Data shown

The data displayed on this page represents your organization's historical audit trail. It pulls from a centralized log of all supported changes made by your team members, API keys, and automated system jobs. The dropdown filters pull from your organization's list of members and your tracked websites to provide accurate filtering options.

## Common workflows

1. **Investigate what changed on a resource**
   1. Navigate to the Activity page in Settings.
   2. Use the date picker to narrow the timeline to the suspected timeframe.
   3. Click the Filter button to isolate the changes (e.g., filter by "Website" or "Event categories").
   4. Locate the specific action in the timeline and click the row to open the Event details dialog.
   5. Review the "Before" and "After" data in the Changes section to see what was modified.

2. **Export a filtered slice of the audit log**
   1. Apply filters and a date range to isolate the events you need.
   2. Check the tooltip or table footer to ensure the total number of matching records is 10,000 or fewer.
   3. Click the "Export CSV" button in the top right.
   4. Your browser will download a file named `audit-logs-[date].csv`.

3. **Upgrade to unlock the Activity log**
   1. Navigate to the Activity page.
   2. If your organization is on a non-Enterprise plan, read the "Activity log" description outlining the feature.
   3. Click "Upgrade plan".
   4. You will be redirected to the Billing page where you can change your subscription tier.

## Empty, loading, and error states

* **Loading**: While fetching your data, the page shows a skeleton placeholder outline of the filter bar and several empty rows in the table.
* **Empty (No events)**: If there are no events matching your filters, the table shows "No activity in this period" and suggests adjusting your filters or date range. If the organization has absolutely no logged activity, it simply shows "No activity available".
* **Upgrade empty state**: Customers on non-Enterprise plans see a locked screen titled "Activity log" explaining that the feature is "Available on the Enterprise plan", accompanied by an "Upgrade plan" button.
* **Error**: If the page fails to verify your plan access, it displays a "Couldn't verify access" card with a "Retry" button. If an error occurs while fetching the actual log data, a red toast notification will appear in the corner of the screen.

## Linked from / links to

* **Linked from**: The "Activity" item in the Settings sidebar.
* **Links to**: The "Upgrade plan" button takes customers to the Settings → Billing page.

## Common support questions

**Why is the "Export CSV" button disabled?**
Exports are capped at 10,000 records to ensure system performance. If your active filters match more than this limit, the button is disabled. Hovering over it will show a tooltip reading: "Export is limited to 10,000 records (\[Number] match). Narrow the date range or filters." You must apply stricter filters to export the data.

**Why can't I click on a specific log row to see details?**
Rows are only clickable if they contain deeper details, such as before/after changes or extra metadata. If an action didn't log any specific data modifications, the row will not open a dialog. Hovering over a row reveals a chevron arrow on the right side only if details are available.

**Why are some actor names showing as "Organization member" or "Organization API key"?**
If you are an external member invited only to specific websites, the identities of people and API keys outside of those accessible websites are hidden to maintain organizational privacy.

**What does the "System" actor mean?**
"System" indicates that the action was performed automatically by Athena's background processes (such as automated data syncing or maintenance tasks) rather than by a specific user.
