Skip to main content
Attesta provides two built-in exporters for converting audit trail entries into standard formats: CSVExporter for spreadsheet-compatible output and JSONExporter for structured data interchange. Both implement the AuditExporter protocol and can be used interchangeably.

AuditExporter Protocol

The base protocol that all exporters implement.

Import

Signature


CSVExporter

Export audit entries as CSV. Nested dict fields (like metadata) are JSON-serialized.

Import

Constructor

Default Columns

When no custom columns are provided, the following fields are exported:

Example


JSONExporter

Export audit entries as a JSON array. Supports pretty-printing with configurable indentation.

Import

Constructor

Example


Custom Exporters

You can implement the AuditExporter protocol to create custom exporters:

Audit Trail

How audit entries are created and stored

CLI Audit

Export and verify audit logs from the command line