Audit Logging

Overview

Audit logs capture security-relevant actions for accountability, investigation, and compliance evidence.

What to Log

flowchart TD A[User or System Action] --> B[Audit Event] B --> C[Immutable Storage] C --> D[Security Review]

Practical Example

{ "timestamp": "2026-09-06T16:30:00Z", "actor": "admin-42", "action": "role.update", "target": "user-1001", "result": "success" }

Production Example

Audit pipelines often forward events to immutable storage with retention controls and restricted read permissions.

Common Pitfalls

Key Takeaways