What Is Logged

CategoryEvents Logged
AuthenticationLogin (success/failure), logout, password change, SSO assertion, token refresh, account lockout
Case LifecycleCreate, stage transition, step complete, close, cancel, reopen, SLA breach, SLA pause/resume
Data ChangesField value updates (old value > new value captured), attachments added/removed
AssignmentClaim, reassign, escalate (with reason), group transfer
AdministrationUser create/modify/deactivate, role changes, access group changes, password resets by admin
ConfigurationCase type publish/archive, connector save, SLA policy change, branding update, env var change (key only, not value)
API AccessAll authenticated API calls: user, method, endpoint, response code, duration ms
Integration EventsConnector calls (outbound): target URL, status code, duration, retry attempts
Webhook EventsInbound webhooks: source connector, payload hash, HMAC verification result, routing outcome
SystemService start/stop, migration runs (revision, status), graph sync, scheduled job executions, HxDeploy promotion events
Cross-Region AccessCross-region read grants and reads (HxGlobal), with source region and requesting user
Fraud ReviewHxShield flag, Clear, Confirm Fraud, Escalate actions with reviewer identity

Audit Log Entry Structure

{
  "id": "uuid",
  "timestamp": "2026-05-17T10:23:45.123Z",
  "category": "case_lifecycle",
  "event_type": "stage_transition",
  "user_id": "agent-uuid",
  "user_email": "agent@company.com",
  "case_id": "case-uuid",
  "case_ref": "CASE-0042",
  "from_value": "intake",
  "to_value": "review",
  "ip_address": "10.0.1.45",
  "access_group_id": "group-finance",
  "tenant_id": "default"
}

Accessing Audit Logs in Studio

  1. Navigate to Studio > Audit Logs. Requires Manager or Admin role.

  2. Use the filter bar to narrow results: date range, user (email or ID), event category, event type, case ID or reference.

  3. Click any entry to expand the full JSON payload including old/new values for data change events.

  4. Click Export to download the filtered result set as CSV or JSON (NDJSON format for SIEM ingestion).

Access scoping: Managers see audit events only for cases within their access group. Admins see all events platform-wide. Auditor role has read-only access equivalent to Manager.

API Access

# Query audit log — filter by category and date range
curl -s "http://localhost:8200/api/v1/audit?category=authentication&from=2026-05-01&to=2026-05-17" \
  -H "Authorization: Bearer $TOKEN"

# Get all audit events for a specific case
curl -s "http://localhost:8200/api/v1/audit?case_id=CASE-0042" \
  -H "Authorization: Bearer $TOKEN"

Retention and Compliance

SettingDefaultConfiguration
Retention Period2 years (730 days)AUDIT_RETENTION_DAYS env var
Archive Before DeleteEnabledEntries moved to audit_log_archive table before deletion
Export FormatCSV, NDJSONAvailable from UI and API
SIEM IntegrationPush via HxSync or pull via APIUse NDJSON format for Splunk/Elastic
Audit logs are append-only. No user — including admins — can modify or delete entries through the Velaris UI or API. Any attempt to truncate or delete from the audit_log table is blocked by a PostgreSQL trigger. The app role has INSERT-only permissions on audit tables — UPDATE and DELETE are denied at the database layer.

Audit Chain Integrity

Velaris implements a cryptographically chained audit model via AuditChainModel. Each record includes a prev_hash field linking it to the previous entry:

hash_n = SHA256(hash_{n-1} || record_n_canonical_json)

This means any edit, deletion, or insertion into the middle of the chain breaks the hash linkage — making tampering detectable by a verifier replaying the chain.

ControlMechanism
Hash-chain linkageEach record stores hash_n = H(prev_hash || record_data). Any mutation breaks the chain detectably.
Append-only DB roleThe application database role has INSERT but not UPDATE or DELETE on audit tables. A compromised application cannot rewrite history.
PostgreSQL triggerA DB-level trigger rejects any UPDATE or DELETE on the audit log table, even from roles not caught by the role restriction.
External anchoring (roadmap)Periodic publication of the chain's Merkle root to an external transparency log (RFC 3161 timestamp authority). Prevents even DB-admin-level backdating. Planned for a future release.
Verify the chain via GET /api/v1/audit/chain/verify (Admin only). Returns {"valid": true, "last_hash": "...", "entries_checked": N} or details of the first broken link if tampered.