Skip to content

Add example on how to export audit logs #190

Closed

Description

@yannickmonney

Problem

Audit logs documents that the log can be exported as CSV or JSON from the toolbar (honoring the active filters), but it never shows what the export contains — the column layout, a sample row, or how the JSON differs from the CSV. A compliance reviewer asked for "an example of how to export audit logs" and there's nothing concrete to point at.

Proposed change

Expand the Exporting section of the audit-logs page with a worked example:

  • the exact CSV column layout (timestamp, action, category, actorEmail, actorId, actorType, actorRole, resourceType, resourceId, resourceName, status, errorMessage), as produced by convex/audit_logs/export_audit_logs.ts, with ISO-8601 UTC timestamps and RFC-4180 quoting,
  • a short sample two-row CSV,
  • the JSON format's extra payload — the full previousState/newState diff and per-row integrityHash (verifiable against the SHA-256 chain) — and when to pick JSON vs CSV.

Notes / acceptance

  • Example added to the existing page (no programmatic/API export surface exists today, so this documents the in-product export).
  • All three base locales (en/de/fr).
  • Columns verified against export_audit_logs.ts.

Activity

  1. added
    priority: low
    needs discussion
    on Jan 12, 2026
  2. larryro commented on Jan 15, 2026

    @larryro
    Contributor

    Depends on #217 (Implement Comprehensive Audit Logging System) - The audit log export documentation should be created after the audit logging system is implemented.

  3. added
    docs
    and removed on Feb 1, 2026
  4. yannickmonney commented on Apr 7, 2026

    @yannickmonney
    ContributorAuthor

    Audit log export functionality would need an API endpoint or CLI command. This is a feature+docs combination that needs design discussion.

  5. self-assigned this
    on Jun 1, 2026
  6. yannickmonney commented on Jun 1, 2026

    @yannickmonney
    ContributorAuthor

    Triaged. Partial status: the UI audit-log export (CSV/JSON, honoring filters) is implemented and already documented under Audit logs → Exporting. What's still missing — and what this issue should track — is a programmatic export example (there's no public HTTP/CLI export surface today), which lines up with the earlier maintainer note. Keeping open as a docs+small-API follow-up; assigned to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

docsneeds discussionpriority: lowservice: platform

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions