Documentation menuDocumentation
Logarithm documentation
A self-hosted audit log for SaaS apps: who changed what, and when. Field-level diffs in your own Postgres or SQLite, and a ready React view for your customers' admins.
Try the live demoStart
Guides
- Recording eventsActions, actors, targets, diffs and what to log.
- PostgresStore events in Postgres, Neon or Supabase.
- PartitioningKeep very large Postgres audit tables fast and make retention instant.
- MySQL and MariaDBStore events in MySQL 8 or MariaDB 10.6+ with mysql2, mariadb or any driver.
- SQLiteStore events in SQLite with better-sqlite3, node:sqlite or Bun.
- Migrations and upgradesCreate the audit table, keep it in your own migrations and upgrade safely.
- Drizzle and PrismaUse Logarithm next to Drizzle ORM or Prisma, with your existing database connection.
- Next.jsAn API route for the viewer with access control.
- Other frameworksHono, Remix and React Router, Express and Cloudflare Workers.
- React viewerShow the audit log to your customers' admins.
- Export formatsSend events to CloudEvents consumers and OpenTelemetry backends.
- Tenants and accessKeep each customer's log separate.
- PrivacyPersonal data in audit logs, GDPR and the Swiss FADP.
- PerformanceMeasured timings with 10 million events, and the index to add when your tenants are large.
- Security modelWhat Logarithm protects, what it leaves to you, and how to report a problem.
Reference
Logarithm Pro
- Logarithm ProTamper evidence, retention and privacy requests, export, forwarding, alerts and a ready-to-run admin server.
- Tamper evidenceAn HMAC hash chain per tenant and a verifier.
- Retention and privacyRetention periods, archives, erasure and access requests.
- Export and forwardingDownloads for your customers and delivery to SIEM tools.
- Alerts and anomaliesSlack, Microsoft Teams and e-mail notifications for selected actions, and anomaly detection for mass deletions, mass changes, off-hours changes and new IPs.
- Admin serverA ready-to-run admin view with search and export for your customers' admins, event ingest and anomaly alerts, as a Docker image or with Node.js.