Authaz logoAuthaz
DocumentationAPI Reference
  • Get Started

    • Authaz
    • Core Concepts
    • Set up your app
    • Quickstart — cURL
  • Authentication

    • Authentication Settings
    • Signup
    • Invitations
    • Password Authentication
    • Multi-Factor Auth
    • Magic Link
    • OAuth / Social Login
    • Passkey (WebAuthn)
    • SAML SSO
    • Machine-to-Machine (M2M)
    • API Keys
  • Authorization

    • Authorization
    • Resources
    • Policies
    • Roles
    • Access Explorer
  • Tenancy

    • Multi-tenancy
    • Tenancy Customization
  • Brand & Host

    • Branding
    • Custom Domains
    • Communications & Email Templates
  • Operate

    • Users
    • Analytics
    • Audit Logs
    • Application Settings
  • SDK Quickstarts

    • Quickstart — Next.js
    • Quickstart — React SPA
    • Quickstart — Hono
    • Quickstart — .NET (Authaz.Sdk)
  • Recipes

    • Recipes & Cookbook
    • Next.js — first integration
    • Next.js — B2B SaaS (multi-tenant)
    • Hono — first integration
    • Hono — B2B SaaS (multi-tenant)
    • React SPA — first integration
    • React SPA — B2B SaaS (multi-tenant)
    • .NET — first integration
    • .NET — B2B SaaS (multi-tenant)
  • Reference

    • Tokens
    • API Reference
    • Errors & Troubleshooting
  • Documentation

    • How Authaz is Built
  1. Authaz
  2. Docs
  3. Operate
  4. Audit Logs

Operate

Audit Logs

4 min read·Updated Jun 19, 2026

The Logs tab (sometimes called Trail Log internally) is the per-application audit trail. Every sign-in, role change, MFA reset, API key rotation, OAuth-provider edit — anything that affects state — lands here. It's the page you open during a security investigation and the page you ship to compliance auditors.

┌──────────┬───────────────────────────────────────────────┬───────┬──────────┐
│ Time     │ Event                                         │ Actor │ Result   │
├──────────┼───────────────────────────────────────────────┼───────┼──────────┤
│ 10:42:18 │ POST /oauth2/token (refresh_token)            │ alice │ 200 OK   │
│ 10:39:01 │ POST /api/v1/users/{id}/mfa/reset             │ admin │ 200 OK   │
│ 10:38:55 │ POST /oauth2/token (authorization_code)       │ alice │ 200 OK   │
│ 10:38:49 │ GET  /oauth2/authorize  (PKCE, S256)          │ —     │ 302      │
│ 10:36:11 │ POST /auth/password/login  (failed)           │ alice │ 401      │
└──────────┴───────────────────────────────────────────────┴───────┴──────────┘

The page is a three-pane layout: filters on the left, an event table in the middle, a detail panel on the right when you select a row.

Where it lives#

Dashboard → Application → Logs. The header shows the total event count, a search box, a Live toggle (5-second polling for tail-the-stream usage), and a Refresh button.

Filters#

The left sidebar has:

Time range#

Previous
Analytics
Next
Application Settings
RangeWhen to use
30m (default)Real-time investigation — what just happened?
1h, 3h, 6h, 12hSame incident, broader window.
24h"Did anything weird happen overnight?"
3d, 7dCompliance review, weekly summary.

For longer windows, switch to API queries — the dashboard caps at 7 days.

Severity#

FilterIncludes
warningAll warnings and above.
errorErrors and fatal.
fatalFatal only — service-level failures.

Multi-select: combine warning + error to see everything except info.

Reset#

Restores defaults (30m window, no severity filter, no search).

Search#

The top search box is full-text against the event description, actor email, and resource ID. Examples:

alice@acme.com
mfa/reset
401
inv_2024_03

Search and filters compose — first the time range, then the severity, then the search.

What's in an event#

Every row shows:

  • Timestamp — to the second.
  • Event — what happened. Usually formatted as METHOD /path plus a one-line description.
  • Actor — the user or credential that initiated the action. Empty when the actor is anonymous (an unauthenticated sign-up start).
  • Result — HTTP status code, success/failure flag.

Click a row to open the detail panel:

FieldWhat it is
Event IDUnique identifier — quote this in support tickets.
DescriptionFull description, including any context the handler emitted.
ActorUser ID, email, IP address, user agent.
ResourceThe object that was acted on (users/abc, roles/xyz, applications/{appId}).
Method + PathThe HTTP request that triggered the event.
StatusHTTP status returned.
TenantWhen the event was tenant-scoped.
MetadataA JSON object with handler-specific extras: previous role, new role, password complexity, MFA method chosen, etc.

Live tail#

Toggle Live in the header and the table polls every 5 seconds, prepending new events. Useful when:

  • Reproducing a sign-in issue with a user on the phone — watch their attempts arrive.
  • Watching for credential-stuffing patterns during an active incident.
  • Verifying that a config change you just saved is being picked up.

Live mode disables the time-range filter (it always shows "from now"). Severity and search still apply.

What gets logged#

Authaz logs every state-mutating event plus authentication attempts (success and failure). Categories:

CategoryExamples
AuthenticationLogin success/fail, MFA challenge, MFA pass/fail, magic-link request, OAuth callback, password reset, signup start/complete, lockout.
IdentityUser created/suspended/activated/deleted, MFA reset, session revoked, password changed.
AuthorizationRole created/updated/deleted, role assignment/unassignment, policy changed, permission check (failures only by default).
ConfigurationAuth provider enabled/disabled, branding updated, custom domain added, email template changed.
CredentialsAPI key created/rotated/revoked, M2M credential lifecycle.
OAuthAuthorize requests, token exchanges (success and failure), token revocations.

Read-only queries (list endpoints, the Access Explorer) are not in the audit log — the volume would be enormous and the value low. Permission-check failures (denials) are logged.

API queries#

Dashboard filters are convenient; for compliance dumps and longer windows, query directly:

# 90-day audit dump for an application
curl 'https://your-app.authaz.io/api/v1/applications/{appId}/audit-logs?startDate=2026-01-01&endDate=2026-04-01&pageSize=100' \
  -H "X-API-Key: $AUTHAZ_API_KEY"
 
# Filter by user
curl 'https://your-app.authaz.io/api/v1/applications/{appId}/audit-logs?actorId=user_01h...' \
  -H "X-API-Key: $AUTHAZ_API_KEY"
 
# Filter by event type
curl 'https://your-app.authaz.io/api/v1/applications/{appId}/audit-logs?eventType=mfa.reset' \
  -H "X-API-Key: $AUTHAZ_API_KEY"
 
# Filter by HTTP status
curl 'https://your-app.authaz.io/api/v1/applications/{appId}/audit-logs?statusCode=401' \
  -H "X-API-Key: $AUTHAZ_API_KEY"

Pagination via cursor in the response. The endpoint is rate-limited but generous — typical compliance dumps complete in a few minutes.

Retention#

TierRetention
Default90 days
Pro180 days
Enterprise365 days, or custom

Past retention, events are gone. For long-term compliance storage, run a daily export to your own S3 / GCS bucket — see the API queries above. There's a webhooks integration on the roadmap that streams events as they happen; until that ships, polling the API is the way.

Practical tips#

  • The detail panel's metadata is gold. It often has the "why" (e.g., for a password failure, whether the password was wrong, the account was locked, or MFA failed). Don't skip it.
  • Cross-reference with the Access Explorer. When investigating a permission denial in the audit log, paste the user + permission into the Access Explorer to see the full reasoning trace.
  • Live tail + a reproducible bug = fast triage. Have the user reproduce the issue while you watch the logs land.
  • Compliance-friendly fields. When auditors ask, point them at: timestamp, actor email/ID, resource, action, result, IP. Every event has all of those.

Next steps#

  • Users — drill from an event to the user it affected.
  • Analytics — aggregates of the same event stream.
  • Authorization → Access Explorer — investigate denials from the log.