System β€” Audit Log

Immutable audit trail

Every action performed in the system is recorded as an immutable event. 185+ domain event types, 27 action categories, 16 business contexts β€” append-only, tamper-proof, always available.

185+ event types 27 action categories 16 contexts covered Append-only Auto-archiving

How audit logging works

Every command handler in the system emits a structured audit event after successful execution. Events are written to an append-only store β€” no update, no delete.

1

Event emission

Command completes β†’ domain event emitted with actor, timestamp, resource ID, and payload diff.

2

Structured storage

Events stored with full context: actor_id, resource_type, resource_id, action, old_value, new_value.

3

Immutability guarantee

Append-only storage model. No row can be updated or deleted β€” only written and archived.

4

Retention & archiving

Configurable retention period per context. Older records auto-archived to cold storage without deletion.

Audit Log
Audit Event Detail

Filtering & incident investigation

Every audit event stores the complete before/after diff of the changed record. Investigators can trace exactly what changed, when, by whom β€” and correlate events across contexts by session.

  • Filter by actor, resource type, resource ID, action, date range
  • Full before/after diff stored per event
  • Cross-context correlation by session ID
  • 27 action types: create, update, delete, approve, reject, activate…
  • 185+ domain event types across 16 business contexts
  • Archived records remain fully queryable β€” never deleted

Coverage across business contexts

Audit events are emitted by every business context in the system β€” not just sensitive financial operations.

Sales & CRM

Lead status changes, pipeline moves, sales target modifications, manager reassignments.

Contracts

Contract creation, approval steps, amendments, Incoterms changes, activation and termination.

Finance

Invoice creation, payment posting, credit note issuance, journal entries, account balance changes.

Warehouse

Stock movements, lot operations, zone transfers, FIFO/FEFO picks, QA status changes.

Manufacturing

Production order lifecycle, BOM version changes, material consumption, output recording.

Procurement

Purchase order approval, goods receipt, 3-Way Matching decisions, supplier evaluation.

HR & Payroll

Employee hire/termination, position changes, payroll run approvals, salary modifications.

Auth & Access

Login, logout, failed attempts, role assignments, permission changes, session revocations.

Filtering & search

Advanced filtering

Filter audit events by any combination of dimensions. Useful for compliance audits, incident investigation, and user activity reviews.

  • Filter by actor (user or system)
  • Filter by resource type and ID
  • Filter by action type and date range
  • Cross-context correlation by session

Retention & archiving

Define retention windows per context. Records past the window are moved to cold archive automatically β€” still queryable, never deleted.

  • Configurable retention per context
  • Automated cold-storage migration
  • Archived records remain queryable