Audit Export
filedge export-audit generates a self-contained static HTML site from the Audit DB — a read-only compliance view for stakeholders who need to trace destination rows to source files without CLI access.
Basic usage
Or set the audit DB via environment variable:
Options
| Flag | Description |
|---|---|
--audit-db-url |
Audit DB connection string. Can also be set via FILEDGE_AUDIT_DB_URL. |
--output |
Path for the generated index.html. Parent directories are created if absent. |
--title |
Pipeline label shown in the site header — useful when hosting exports for multiple pipelines. |
--dest-table |
Destination table name. When provided, the lineage SQL in the export becomes immediately executable. |
Scheduling
Run filedge export-audit as a step after filedge run in your scheduler:
# cron / Airflow / Kubernetes CronJob
filedge run --dir ./incoming --config pipeline.yaml
filedge export-audit --output ./site/index.html --title "KYC Documents" --dest-table kyc.documents
The site always reflects the current Audit DB state — it overwrites the previous export on each run. The Audit DB is the system of record for point-in-time evidence; re-run export-audit against a DB snapshot to reproduce any historical view.
Hosting
The output is a single self-contained index.html — no server required. Upload it anywhere that serves static files:
# S3
aws s3 cp ./site/index.html s3://my-bucket/filedge/index.html
# GCS
gsutil cp ./site/index.html gs://my-bucket/filedge/index.html
Access control is handled by your static hosting layer (signed URLs, SSO-gated CDN, IP allowlist) — Filedge does not manage authentication.
What the export shows
The site presents a sortable, filterable Files table. For each file:
- Filename, state chip (
COMMITTED/FAILED/PENDING/PROCESSING) - Row count committed to the destination (blank
—for files ingested before row count tracking was added) - Attempt count and last-updated timestamp
- Click to expand: full content hash, source directory, error message (for FAILED files), and a copyable lineage SQL query
Lineage SQL
Each file row includes a Copy lineage SQL button that produces a query like:
Paste this into your BI tool or warehouse query console to see every destination row that came from that specific file.
Row data stays in the warehouse
The export never contains destination row data. The lineage SQL lets auditors query the warehouse directly — keeping PII out of the static artifact.