---
title: Detections
description: In Lakewatch, a detection rule defines how the system searches event data and generates a signal for investigation when the rule's conditions are met.
canonical_url: https://docs.databricks.com/aws/en/lakewatch/detections/
---

# Detections

> [!NOTE]
> **Beta**
>
> Lakewatch is in [Beta](https://docs.databricks.com/aws/en/release-notes/release-types.md). Workspace admins can control access to this feature from the **Previews** page. See [ Manage workspace-level previews](https://docs.databricks.com/aws/en/admin/workspace-settings/manage-previews.md#workspace).

A detection rule (or *detection*) defines how Lakewatch searches event data. For each match, Lakewatch generates a [signal](https://docs.databricks.com/aws/en/lakewatch/detections/signals.md) that records details for investigation. You can write your own rules or import prebuilt scheduled rules from the [Content library](https://docs.databricks.com/aws/en/lakewatch/content-library/index.md).

Scheduled rules run SQL queries over time windows on a schedule. Streaming rules evaluate new source rows continuously and are an experimental feature.

## In this section

Use the following pages to create and manage detection rules:

| Topic                                                                                                                 | Description                                                                                            |
| --------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ |
| [Choose a detection rule type](https://docs.databricks.com/aws/en/lakewatch/detections/choose-detection-rule-type.md) | Compare rule types and find the right fit for your detection pattern.                                  |
| [Scheduled detection rules](https://docs.databricks.com/aws/en/lakewatch/detections/scheduled-detection-rules.md)     | Write SQL queries, configure a warehouse and schedule, and handle time windows and late-arriving data. |
| [Streaming detection rules](https://docs.databricks.com/aws/en/lakewatch/detections/streaming-detection-rules.md)     | Write predicates that evaluate new source rows continuously, then create and monitor streaming rules.  |
| [Manage detection rules](https://docs.databricks.com/aws/en/lakewatch/detections/manage-detection-rules.md)           | Configure shared settings, turn rules on or off, and edit YAML.                                        |
| [Signals](https://docs.databricks.com/aws/en/lakewatch/detections/signals.md)                                         | Understand signal output, deduplication, and how to query signals.                                     |
