-
Notifications
You must be signed in to change notification settings - Fork 0
Anomaly Detection Rules
Ahmed edited this page Mar 16, 2026
·
2 revisions
EventLens can perform scheduled anomaly scans to detect complex state violations in your system based on replaying aggregate histories.
Inside your eventlens.yaml, define conditions and severity codes:
anomaly:
scan-interval-seconds: 60
rules:
- code: NEGATIVE_BALANCE
condition: "balance < 0"
severity: HIGH
- code: LARGE_WITHDRAWAL
condition: "amount > 10000"
severity: MEDIUM- The
scan-interval-secondsperforms a background sweep over your event store. - Replayed states are evaluated against the
conditionlogic via a parser. - Any event that pushes a state into violation will be flagged and listed in the EventLens "Anomalies" dashboard.