Audit log

What each audit entry holds, who reads the log, how to read it from the CLI or the API, and how Laze staff actions show in it.

The audit log records every action taken in a workspace: who did it, what, when, through what and how it ended. Workspace admins read it in the app, export it, check that it was not changed and stream it to a SIEM. It holds metadata only, never message text.

What lands on the trail

  • Changes. Every create, edit and delete made through the app, an API key or the CLI: invites, role changes, sharing, connecting and disconnecting accounts, agent changes, apps, channels, keys, settings and exports.
  • Sign-ins. Each sign-in and each refused sign-in, with the method, the IP address and the browser.
  • Laze staff visits. The start and the end of each support visit, with the reason the staff member gave.
  • Agent turns. Each turn an agent runs, as metadata.
  • Vault decisions. Each use of a key, approval and refusal.
  • Account actions. Changes a person makes to their own account.

Each entry names who acted, the action, the time, the way it came in (the app, an API key, an agent, the directory or Laze staff), the target and the result: done, or refused with its error code. Free text in an action's arguments, such as a message body, a file name or an email address, is stored as its size, like [text 14]. Ids, numbers and short slugs stay as they were.

Read the audit log

Owners and Admins hold the auditLog:view permission; Members, Guests and agents do not. Open Settings, Audit log, in the Workspace group. The newest entries come first.

Filter by Person, Agent, Action (an action or its start, such as agent.), Result and a date range with From and To. To see everything done by or to one agent, pick it in the Agent filter.

Export CSV and Export JSON download the filtered entries, up to 50,000 rows per file. When more entries match, the file holds the newest 50,000; narrow the dates to get the rest. Each export is itself recorded on the trail. In CSV, a cell that starts with =, +, - or @ gets a leading quote so a spreadsheet shows it as text.

Tamper evidence

Every entry is sealed into a SHA-256 hash chain of its workspace within about a minute of being recorded. Each link covers the entry's fields, its position and the hash of the link before it.

Check integrity on the audit log page, or laze audit verify, walks the chain and recomputes each hash. It answers Intact with the number of entries checked and the newest hash, or names the first entry that changed after it was recorded. Entries recorded in the last minute are reported as not yet sealed.

Erasing a person under the GDPR clears their IP address, browser and arguments on their entries. The chain still verifies, and the identity fields stay covered by it. To show that the whole chain was not rewritten, compare its newest hash with a copy kept elsewhere, such as your SIEM or an earlier export.

Retention

The trail is kept for one year by default, then deleted by a daily pass. With the enterprise audit controls, an admin who manages the workspace chooses from 30 days to 7 years under How long it is kept on the audit log page, or with laze audit retention set <days>. Each change of retention is recorded on the trail.

Stream to a SIEM

With the enterprise audit controls, a workspace streams its trail to a signed HTTPS webhook, an OTLP/HTTP logs endpoint, or both. Add them under Streaming on the audit log page, or with laze audit stream set. Only admins who manage the workspace change streams.

  • Each entry is delivered once per destination, oldest first, as an OCSF 1.1 event: API Activity (6003), or Authentication (3002) for a sign-in. Fields OCSF has no place for, such as the agent, the channel and the reason, go in unmapped.
  • metadata.uid is the entry id. Delivery is at least once, so dedupe on it.
  • New entries reach the destination within about 15 seconds. A new stream starts at the moment it is saved; use an export for older entries.
  • A failing destination keeps its position and retries with backoff, from 30 seconds up to an hour. Saving the stream again clears the backoff. Send test event sends one test event and shows the answer.
  • A destination must be a public https address. Laze refuses private and internal addresses, and does not follow redirects.
  • Headers sent with each delivery, such as a Splunk HEC token or a collector token, are stored encrypted. After you save them, Laze shows their names only.

An OTLP stream posts an OTLP/HTTP JSON logs request to the URL you give, such as https://collector.example.com:4318/v1/logs. Each log record carries the OCSF event as its body.

Verify a webhook delivery

A webhook delivery is a POST with the JSON body {"events":[...]} and a laze-signature header:

laze-signature: t=1764662400,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd

t is the time of the delivery in Unix seconds. v1 is the hex HMAC-SHA256 of <t>.<raw body> made with the stream's signing secret. Compute it over the raw body, before any JSON parsing, and reject a timestamp older than 5 minutes.

The signing secret is shown once, when the webhook is created or its secret is rotated with Rotate signing secret or --rotate-secret. Rotating stops the old secret at once.

In Node:

import { createHmac, timingSafeEqual } from "node:crypto";

export function verifyLazeSignature({ header, rawBody, secret }) {
  const parts = Object.fromEntries(header.split(",").map((part) => part.split("=")));
  const seconds = Number(parts.t);
  if (!Number.isInteger(seconds) || Date.now() / 1000 - seconds > 300) return false;
  const expected = createHmac("sha256", secret).update(`${parts.t}.${rawBody}`).digest();
  const given = Buffer.from(parts.v1 ?? "", "hex");
  return given.length === expected.length && timingSafeEqual(given, expected);
}

In Python:

import hashlib
import hmac
import time


def verify_laze_signature(header: str, raw_body: bytes, secret: str) -> bool:
    parts = dict(part.split("=", 1) for part in header.split(","))
    if not parts.get("t", "").isdigit() or time.time() - int(parts["t"]) > 300:
        return False
    signed = parts["t"].encode() + b"." + raw_body
    expected = hmac.new(secret.encode(), signed, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, parts.get("v1", ""))

Enterprise audit controls

Choosing the retention and streaming to a SIEM are part of the enterprise audit controls. Laze turns them on for a workspace: write to support@laze.so or contact sales. Every workspace has the trail, the filters, the exports and the integrity check.

REST API

The routes take an admin's API key and act on that key's workspace. The base address is /api/v1/audit-log.

RouteWhat it doesPermission
POST /searchOne page of entries, newest first, filtered by actorId, agentId, action, result, since and until, with limit and cursorauditLog:view
POST /exportThe filtered entries as CSV or JSON (format)auditLog:view
POST /verifyWalks the hash chain and says where it first breaksauditLog:view
POST /settingsHow long the trail is keptauditLog:view
POST /settings/retentionSets retentionDays, 30 to 2555workspace:manage
GET /streamsThe webhook and OTLP streams, with header names onlyauditLog:view
POST /streamsSaves a stream; a new or rotated webhook answers its signing secret onceworkspace:manage
POST /streams/testSends one test event to a streamworkspace:manage
POST /streams/removeStops and removes a streamworkspace:manage

An agent's key holds neither permission, so an agent cannot read the trail or move its stream.

CLI

laze audit --agent <id> --since 2026-11-01 --limit 50
laze audit --person <id> --action agent. --result refused
laze audit export --since 2026-01-01 --format csv > audit.csv
laze audit verify
laze audit retention
laze audit retention set 730

laze audit (or laze audit list) takes --person, --agent, --action, --result ok|refused, --since, --until, --limit (1 to 200) and --cursor. laze audit export takes the same filters and --format csv|json.

laze audit stream
laze audit stream set webhook https://siem.example.com/laze
printf 'Bearer %s' "$COLLECTOR_TOKEN" | laze audit stream set otlp https://collector.example.com:4318/v1/logs --header-stdin Authorization
laze audit stream test webhook
laze audit stream remove otlp

laze audit stream set webhook|otlp <url> takes --header Name=Value (repeatable), --header-stdin Name to read one header's value from standard input so it stays out of your shell history, --disabled to save it without sending, and --rotate-secret for a new webhook signing secret.

Laze staff in the log

When Laze staff act on your workspace, the log says so:

EntryWhen
staff.impersonation.startedA staff member starts a read-only support visit as one of your people, with the reason and length
staff.operator_key.usedA staff tool reads your workspace's records, with the tool's name
staff.break_glass.approved, staff.break_glass.readStaff read specific messages under a second staff member's approval

See Data and retention for the rules on staff access.

The vault audit log

Key uses, approvals, reveals and key changes have their own hash-chained log, shown on the Vault page. See Keys and the vault.

Also check: Single sign-on.