---
title: readAuditLog
description: >-
  The audit log, newest first, a page at a time, in one query: every plugin's
  entries, filtered by who made them and what they changed. Throws when the site
  binds no `SVARTZ_DB`. The log is append-only, so nothing here changes it.
updated_at: '2026-11-19T12:10:41+01:00'
created_at: '2026-11-19T06:37:33+01:00'
symbol:
  kind: function
  name: readAuditLog
  signatures:
    - >-
      readAuditLog(env: Readonly<Record<string, unknown>>, options?:
      [[reference/api/auth/server/AuditQuery|AuditQuery]]):
      Promise<[[reference/api/auth/server/AuditLogPage|AuditLogPage]]>
  parameters:
    - name: env
      type: 'Readonly<Record<string, unknown>>'
    - name: options
      type: '[[reference/api/auth/server/AuditQuery|AuditQuery]]'
      optional: true
  returns:
    type: 'Promise<[[reference/api/auth/server/AuditLogPage|AuditLogPage]]>'
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/auth/src/audit.ts#L86
---

# readAuditLog
