Skip to content

Export the audit trail

Producing a copy of the audit log — typically for an FDA inspection, an internal audit, an evidence archive, or a customer or partner audit.

  • A user account with one of the export-permitted roles: System Admin, Quality Director, or Auditor. Quality Reviewer and Quality Manager roles can view the audit log in-app but the export action is rejected by the API.
  • A clear date range and scope (whole tenant, or a specific period)
  1. Open the Audit Workspace tab in the main app navigation. The page header reads “Audit Workspace” with the subtitle “Observations, gap analysis, and 21 CFR Part 11 compliant audit trail.”

  2. The audit log loads in the appropriate sub-tab. Each row shows timestamp, user, action, resource, and IP address.

  3. Click the Export button at the top right (download icon next to the label). A dropdown panel appears below the button, titled Export Audit Trail.

  4. Set the date range:

    • Start Date — calendar input, format YYYY-MM-DD
    • End Date — calendar input, format YYYY-MM-DD

    Leave both blank to export the full audit log for the tenant.

  5. Choose a format. Two buttons in the dropdown:

    • CSV — comment-prefixed metadata header rows (tenant ID, export timestamp, date range, record count) followed by a table of timestamp, username, action, resource, IP, details
    • PDF — landscape letter-sized, paginated, with a cover sheet titled “Audit Trail Export” plus export date, period, and record count
  6. Clicking the format button submits the export. The button shows a spinner while the file streams. When ready, the browser downloads:

    • audit_log_YYYY-MM-DD.csv
    • or audit_log_YYYY-MM-DD.pdf
  7. Save the file with the rest of your audit-evidence package.

The export is designed to be:

  • Reproducible — the same query against the same audit log produces the same result. The export’s metadata (date range, tenant ID, record count) lets the export be reproduced later for a follow-up review.
  • Tamper-evident at the source — the source log is append-only with a database-level no-update / no-delete trigger; the export preserves entries verbatim.
  • Complete relative to the query — the cover sheet (PDF) or comment headers (CSV) record the matched record count.
  • Full document content for cited records. The log captures references, not embedded files. If an inspector needs the document referenced in an audit-log entry, that’s a separate document-export action.
  • Operational telemetry. Latency, error rates, model invocations — these live in observability tooling, not the audit log.
  • The event for this export is recorded after its rows are selected. It appears in later audit queries and exports, with the actor, format, date range and exported count.
  • You see the Export button but the export fails with a permission error — your role has audit:view but not audit:export. The export button is shown to anyone who can view the audit page; the API is what enforces the export role gate. Quality Reviewer and Quality Manager roles fall in this bucket. Ask your tenant admin or info@genisage.com for elevation if export is part of your responsibilities.
  • A very large date range times out — exports are streamed synchronously. If a multi-year range times out, narrow it (e.g. one quarter) and combine multiple smaller exports.
  • You need to redact certain entries before sharing — audit log entries cannot be modified at the source. The right pattern is to filter the export to a date range that excludes what shouldn’t be shared, or to redact the exported file using your normal document-handling process and to record the rationale alongside the shared export.
  • Filtering by actor or action type — the in-app dropdown only exposes the date range filters today. Action / actor filtering is a planned enhancement; for now, narrow the date range and filter the exported CSV externally if needed.