Administration

Audit logs

A complete, tamper-evident record of every significant user and system action in your workspace — searchable in real time and archivable to long-term storage.

What audit logs capture

Every significant action in your workspace writes an audit event. Events are written for both user-initiated actions and automated system actions. The log is append-only — events cannot be modified or deleted through the UI or API.

Captured events include: record creates, updates, deletes, and views; report exports; Permission and Permission Extension changes (including variant, page, and flow assignments) and user changes (create, update, activate, deactivate, blacklist, Permission assignment, email changes — see below); Record Auto-Sharing changes and a summary of what each one did to records; group deletions, with what lost its share; flow changes, activations, and runs; approval submissions, reassignments, and cancellations; file and folder uploads, versions, links, deletes, and restores; lead conversions; duplicate merges; field type conversions; sign-in activity (see below); support sessions and support access policy changes; sandbox deletions; and sandbox email holds.

Sign-in activity

Sign-in events come from source auth and record the IP address and browser that made the request:

  • auth.sign_in — a successful sign-in, or a failed one (wrong password, wrong verification code, an inactive or blocked user, or a password sign-in refused because the workspace requires SSO), recorded as Failed with severity Warning. An attempt with a username that doesn't exist is recorded too, with no user and the username that was typed. One address gets 100 sign-in attempts a minute; after that, sign-in from it is refused for 15 minutes.
  • auth.sign_out — a user signed out.
  • auth.mfa.enrolled / auth.mfa.removed — an authenticator app was set up, or removed by the user or reset by an admin.
  • auth.passkey.added / auth.passkey.removed — a passkey was added (in User Settings or while signing in), or removed by the user or an admin.
  • auth.ip_blocked — a sign-in or request came from an address the user's IP Allowlist doesn't allow. Recorded once an hour per user and address.
  • auth.password_reset.requested / auth.password_reset.completed — a reset was requested (Forgot password, or by an admin) and a password was set from the emailed link.
  • auth.sessions.revoked — a user was signed out everywhere by something else: an admin's MFA reset, a password reset, or being deactivated or blocked.

Email changes

Changing a user's email is recorded step by step, each with who did it and the old and new address:

  • user.email_change.requested — a different email was saved for the user (in User Settings, on the user's page, or through the API, a data import, a flow, or Kraftter AI) and a verification link was sent to the new address.
  • user.email_change.resent — a fresh verification link was sent.
  • user.email_change.cancelled — the waiting change was cancelled.
  • user.email_change.verified — the link was clicked and the new address became the user's email.

Event fields

Every audit event record contains:

  • Actor User ID / Actor Display Name — the user who performed the action. For system-initiated events, this is marked as the system service.
  • Source — where the action originated, for example api (a request from the app or an API client), mcp (an AI assistant through the MCP server, naming the assistant), automation (a flow), approval, worker (a background job), admin, support (a support session), auth (sign-in activity), or system.
  • Action — a string describing what happened, for example record.create, record.update, record.delete, report.export, user.deactivate, access_permission.permissions.updated, automation.activate, approval.submit, files.soft_delete, duplicate_result.merge, auth.sign_in.
  • Entity Type — the type of entity affected (e.g., User, AccessPermission, PermissionExtension, AutomationDefinition, File, Workspace, etc.).
  • Entity ID — the ID of the specific record or resource affected.
  • Entity Name — a human-readable name for the affected entity (e.g., the record's Name field value at the time of the event).
  • Outcome:
    • success — the action completed successfully.
    • failure — the action failed (permission denied, validation error, etc.).
  • Severity:
    • info — routine operation.
    • warning — unusual or potentially significant action.
    • error — something failed and may need attention.
  • Message — a human-readable description of the event.
  • Metadata — additional structured context: IP address, user agent, request ID, and for record events, a snapshot of the changed field values (old value → new value).
  • Timestamp — when the event occurred, on your clock (your Time Zone in User Settings, or the workspace's).

Viewing audit logs

Go to Setup () → Audit Logs. The log shows events in reverse chronological order (most recent first), with their time, actor, action, entity, outcome, and message. Filter by Search (keywords across action, entity, and message), Source, and Outcome; the API also filters by severity and action.

Click View on an event to see what happened, the target, what changed (before and after values for record events), and the debug details.

CSV export

Click Export CSV to export the currently filtered events. The export includes the event fields in flat format and is generated as a direct download. A single export contains up to 20,000 events. Use exports for compliance reporting, incident investigation handoffs, or external SIEM ingestion.

Export CSV, Archive Now and Refresh sit on one line beside the page's title, with the filters on the line below. When the window is too narrow, the buttons that don't fit move, in the same order, into a ⋮ button at the end of the line. On a phone they sit on their own line under the title.

Retention and archiving

Live audit events are retained in the database for the Kraftter-configured retention period. The default is 30 days, and the configured value can range from 7 to 365 days. Events beyond that window are eligible for archiving.

Archives are stored as compressed NDJSON files (gzip-compressed newline-delimited JSON). Each archive file covers a specific date range and is stored in Kraftter's object storage (Cloudflare R2). Archive files are immutable and tamper-evident.

Archiving can be triggered in two ways:

  • Scheduled — Kraftter queues the archive job daily. The job moves eligible events older than the retention window to archive storage.
  • Manual — click Archive Now on the Audit Logs page to queue archival immediately.

Viewing and downloading archives

Go to Setup () → Audit Logs. The Archived Files section lists each daily archive file with its date, event count, file size, and creation timestamp. Download an archive file to access the raw NDJSON data. Archive files are not searchable from within Kraftter — download and process them externally if you need to query archived events.

Access

The Audit Logs page displays the active retention period; it does not provide controls for changing the retention period or archive schedule. The audit_logs.read permission is required to view events and archives, export events, download archive files, and run archival manually.

This guide is part of the Kraftter documentation V1. Visual walkthroughs and examples are coming in a future update.