Skip to main content

Log Archive Database: PostgreSQL or MS SQL

The Log Archiver persists message indexes, payload archives, event details, offsets, and instance health to a SQL database.

Supported production choices

AreaPostgreSQLMicrosoft SQL Server
Multi-archiver writesSupportedSupported
Idempotent insert patternON CONFLICT DO NOTHINGMERGE or equivalent guarded insert
Typical fitLinux/cloud/open-source database standardMicrosoft enterprise database standard
Operational toolingPostgreSQL ecosystemSQL Server/SSMS ecosystem

Both are valid. Choose the database your organization can back up, monitor, patch, tune, and support reliably.

Do not use SQLite for multiple Archivers

SQLite is the default single-machine DEV profile and should have exactly one writer. PostgreSQL and MS SQL support multiple Archiver instances in the same consumer group.

Configuration process

  1. Create an empty database, for example linkiir_logs.
  2. Create a least-privilege Log Archiver database user.
  3. Open Settings → Logs.
  4. Select PostgreSQL or MS SQL.
  5. Enter host, port, database, user, and password.
  6. Set the Archiver instance count.
  7. Test the connection.
  8. Restart all Archiver instances.
  9. Verify tables, indexes, heartbeats, assigned partitions, and recent events.

The Archiver creates or upgrades its schema according to the release. Store the database password encrypted through Linkiir settings or an approved secrets integration.