The activity log can be downloaded as CSV or JSON. Exports are available to site administrators and global administrators.
Exporting
- Open Audit Trail in the admin sidebar.
- Optionally apply filters (action, actor, resource type, date range). See Viewing the Activity Log.
- Click Export CSV or Export JSON at the top of the page.
The file downloads immediately. Filters that are active on the page are applied to the export, so the file contains the rows you were looking at, not only the current page.
The file name is audit-trail-YYYYMMDD.csv or audit-trail-YYYYMMDD.json, using the export date.
Limits
An export contains at most 10,000 rows, newest first. If you need more than that, narrow the export with date filters and run it several times, or query the audit_trail table directly (see Logged Events for the table layout).
File contents
Both formats contain the same twelve fields per entry:
id, timestamp, actor_id, actor_display, action, resource_type, resource_id,
resource_label, resource_url, ip_address, user_agent, extra
The CSV has a header row. The JSON file is an array of objects, one per entry. In both formats extra is the raw JSON string stored with the entry (for example {"operation":"update","resource_name":"items"}), or empty.
Export URLs
The buttons call /admin/audit/export with the current filters as query parameters and a format of csv or json. For example:
/admin/audit/export?format=json&resource_type=item&date_from=2026-01-01
You can request these URLs directly from a browser session that is logged in with a permitted role. The endpoint does not accept API key authentication.