> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flowwarden.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Audit Log

> Build an immutable audit trail from database changes

<Note>This page is a placeholder. Full content coming soon.</Note>

## Overview

Use FlowWarden to capture **every insert, update, and delete** on sensitive collections and write them to a dedicated audit log — for compliance, debugging, or analytics.

```mermaid theme={null}
flowchart LR
    A[(Users collection)] -->|Change Stream| B[FlowWarden]
    B -->|log| C[(audit_log collection)]
    D[(Orders collection)] -->|Change Stream| B
```

## Why FlowWarden

* **Checkpointing** guarantees no change is missed, even after restarts
* **`@OnChange`** captures all operation types in a single handler
* **`@Filter`** scopes the stream to only the collections that require auditing
