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

  1. Open Logs. The Activity view lists the newest event first.
  2. Search, or filter by site and kind of event. The export holds exactly the rows that match.
  3. Select Export, then CSV or JSON.
  4. 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

Related

Report a problem with this page