Hearth documentation

Audit log

The audit log records who did what to accounts, security and settings: sign-ins and failed sign-ins, two-factor and passkey changes, app passwords, admin actions, policy changes, invitations, legal holds, exports and more. It is tamper-evident: each entry is chained to the one before by a hash, so a changed or removed entry shows when the log is verified.

Beside it, the audit of reads records who opened or downloaded which file, message, contact or event, for the people a policy covers.

Both are under Administration, Audit log.

Reading the log

The log lists the newest entries first, a hundred at a time; select More for older ones. Each entry shows what happened and to what, who did it, their network address, their device, and when. Hover over the time for the exact date.

The filters above the list:

The addresses are only right when TRUSTED_PROXIES names your reverse proxy (Installing).

The audit of reads

The audit of reads is off until a security policy turns on Audit reads for everyone or a group. Only the reads of people a policy covers are kept, never guests'.

Each read shows Opened or Downloaded, the kind (File, Message, Contact or Event), its name, the person and their address. Entries keep the person's name, so they outlive deleted accounts.

The reads are written in batches every two seconds, outside people's requests, so the audit does not slow anyone down. They are not part of the hash chain.

Exporting

  1. Select Export (the download button).
  2. Under What, choose Audit log or Reads.
  3. Choose the From and To days (both included).
  4. Under Format, choose CSV or JSON Lines.
  5. Select Download.

Every export is recorded in the log before its first byte is sent. The log's JSON Lines export carries each entry's place in the chain and its hashes, so it can be verified on its own (below).

On the server, the same export goes to standard output:

docker compose exec -T hearth /hearth audit export --what log \
  --from 2026-01-01 --to 2026-03-31 --format jsonl > audit-q1.jsonl

How long entries are kept

Select Keep entries (the settings button) and type Keep for (days). Leave it empty to keep entries always, which is the default. Older entries of the log and the reads are deleted once an hour, and each clean-up records how many it removed. Changing the setting is recorded too.

The regulated preset sets six years (Security policies).

Verifying the log

Hearth seals each entry once, about a minute after it is written: it gets its place in the chain and a SHA-256 hash over the previous entry's hash and its own fields. After each day ends (in UTC), the first seal records that day's anchor: the last entry's place and hash. The anchor is written to Hearth's log, and the nightly backup copies the anchors into the backup's keys repository, away from the database.

To check the chain:

  1. Select Verify (the certificate button).
  2. Hearth seals what is waiting and checks every entry. It shows Intact or Not intact, with how many entries and anchors it checked.
  3. Problems are listed with the entry they concern:
    • Changed: an entry no longer matches its hash.
    • Missing: entries are gone from the middle, or an anchor points past the end.
    • Start removed: the beginning of the log is gone (other than by the clean-up above).
    • Anchor differs: a day's anchor no longer matches.
    • Not sealed: entries were left without a seal.

Each check is recorded in the log. The same check runs on the server and exits with an error when the chain does not hold, which suits a scheduled job:

docker compose exec hearth /hearth audit verify

Checking an export on its own

An auditor can check a JSON Lines export without access to the server or the database:

hearth audit verify --file audit-q1.jsonl

It checks that every entry follows the one before, and prints the hash the export's first entry follows. Compare that hash with the anchor of the day before the export starts. The anchors kept with a backup can be listed from the restore kit alone:

hearth backup audit-anchors --kit restore-kit.json

The clean-up of old entries cuts the log only at an anchor, so what is left still starts from a known hash.

What the log does not hold

The log records actions, not content. It never records the text of documents, messages or searches. The audit of reads names the item opened, but nothing of what is in it.