Export activity and audit logs
Filter the activity log or the audit log and download the rows as CSV or JSON.
Filter the activity log or the audit log, then download the rows as CSV or JSON.
Before you start
- Activity needs
logs:read, which every built-in role holds. It keeps 90 days. - Audit is for Owners and Admins, or a custom role with
audit:read. It keeps 13 months.
Steps
- Open Logs. The Activity view lists the newest event first.
- Search, or filter by site and kind of event. The export holds exactly the rows that match.
- Select Export, then CSV or JSON.
- For the audit trail, open the Audit view, filter it and export the same way.
Result
The file holds the filtered rows in the order of the view. The audit file has the columns Time, Actor, Support session, Session purpose, Session start, Session minutes, Action, Occurrences, Target, Outcome, Request id, Address and User agent.
The Actor column shows:
- The email address of a member, yours included.
- An API token name if you can read API tokens, otherwise An API token.
- Fleet support for actions by Fleet staff. The Support session columns then give the session, its purpose, when it started and how many minutes it lasted.
- Fleet for work Fleet runs on its own, such as checking a connection, and for an Owner's confirmation of a deletion from the emailed link.
Audit event reference explains each action.
If something goes wrong
- Export is missing. Your role lacks the read permission for the log. Ask an Owner or Admin. See Roles and permissions.
- An event is missing. Check the filters, then the retention period.
- You need your data, not a log. See Export your data or delete your account.