Detection as Code

Replay

Replay runs a rule over historical data to see what it would have alerted on. It answers how noisy a rule will be and whether it catches what it should, using your own logs. Products call it retrohunt, manual rerun, data replay or test over a time range.

What Replay means here

The value of replay is volume. A rule that passes unit tests can still produce thousands of alerts a day on real traffic. Replay shows that before the rule pages anyone.

Replay results are not always kept. Some products show a result window and discard it, so record the outcome in the pull request.

Example of Replay in Microsoft Sentinel documentation

Sentinel documents a Manual rerun of analytics rules and a Results simulation option to test a query with current data, for testing and tuning a rule. learn.microsoft.com read 2026-11-03

Terms related to Replay

The matrix scores platforms on whether they document these ideas: see the matrix and the full glossary.