﻿---
title: Review rules and signals
description: Check which rules detection runs on your logs, what each rule found, and how discovery judged it. Remove rules that only add noise.
url: https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9663/solutions/observability/nightshift/detection/rules-and-signals
products:
  - Elastic Cloud Serverless
  - Elastic Documentation
  - Elastic Observability
applies_to:
  - Serverless Observability projects: Preview
---

# Review rules and signals
Rules and signals are the evidence behind every significant event. Review them to find out what detection watches in your logs, why it raised an event, and which rules only add noise.
- A **rule** is an ES|QL query that looks for one failure pattern, such as database lock timeouts. It runs on a schedule and counts the matching log lines.
- A **signal** is a record that a rule's match count changed significantly, such as a sudden spike. Discovery reviews signals and groups the ones that point to the same problem into a significant event.


## Where rules come from

Elastic nightshift writes rules for you from the query KIs that it learns from your sources. Refer to [How detection learns your system](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9663/solutions/observability/nightshift/detection/learning).
- **Generated automatically.** A query KI becomes a rule when it matches specific log lines and has a high severity score.
- **Promoted by you.** Other query KIs stay on the **Knowledge Indicators** tab. To turn one into a rule, open **Knowledge** → **Knowledge Indicators**, select the KI, and select **Promote**. Promote also brings back a rule that you deleted. Refer to [Knowledge Indicators](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9663/solutions/observability/nightshift/context/knowledge-indicators).

Query KIs that compute statistics, such as an error count, can't become rules yet.
All rules run on a shared schedule, every few minutes. A rule match doesn't open an alert on its own.

## Review rules

To open the list, select the **Rules** tab on the **Detections** page.
The **Rule matches over time** chart shows how often your rules matched. The table lists every rule, with the following columns:
- **Title**: The name of the rule.
- **Impact**: How serious a match of this rule is, such as **Critical**.
- **Last activity**: The latest interval in which the rule matched.
- **Status**: Whether the rule runs, such as **Active**.
- **Matches**: How many log lines the rule matched in the selected time range.

To find a rule, search by name, select entities in the **Entities** list, or change the time range. The default is **Last 24 hours**.
To work with a rule, open its `boxes_vertical` menu:
- **Open in Discover** shows the log lines that the rule matches.
- **Delete rule** removes it. To remove several rules, select them, then select **Delete selected**.

Delete a rule when it matches all the time without a real problem behind it. Its query KI stays, so you can promote it again later.

## Signals

Detection compares each rule's match counts over time. When the pattern changes significantly, it records a signal with the kind of change:
- **Spike**: The count jumps up for a short time.
- **Dip**: The count drops for a short time.
- **Step change**: The count moves to another level and stays there.
- **Trend change**: The count starts to rise or fall in a different direction.
- **Distribution change**: The overall shape of the counts changes.
- **Non-stationary**: The counts no longer follow a stable pattern.

A signal on its own doesn't need any action from you. Discovery reviews it together with related signals and tests whether they point to a real problem.

### Check the signals behind an event

Every significant event lists its signals in the **Detections** section of its details. Select one to open it next to the event.
A signal shows:
- Badges for the kind of change, such as **Non-stationary**, and for the verdict.
- **Summary**: What discovery found when it checked the signal against your current data.
- **Trend**: The rule's match counts, with the change marked.
- **ES|QL query**: The rule's query. Select **Open in Discover** to run it yourself.

To ask questions about the signal, select **Open in chat**.
The verdict tells you how discovery judged the signal:
- **Confirmed**: Discovery found data that shows the failure.
- **Refuted**: Discovery checked and found the system healthy for this rule.
- **Inconclusive**: The check couldn't establish either way, for example because the query returned nothing or failed.
- **Off topic**: The check found something that isn't related to the rule.
- **Not checked**: No query was available to check the signal.

An event can include refuted signals. Read them together with the event's confidence before you act.

### Browse all signals

The **Signals** tab lists every signal, one per row. It appears only in [developer mode](/elastic/docs-content/pull/9663/solutions/observability/nightshift/settings#nightshift-settings-developer-mode).
Each row shows the **Rule**, the **Source**, the **Timestamp**, the **Change**, and the **Discovery** state:
- **Pending**: Discovery hasn't reviewed the signal yet.
- **Processed**: Discovery reviewed it.
- **Skipped**: Discovery closed the signal without reviewing it again, because nothing had changed. Hover over the badge for the reason.

Use the **Change** filter to show only some kinds of change.

## Next steps

- [Review significant events](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9663/solutions/observability/nightshift/detection/significant-events): Review the events that discovery raised from your signals.
- [Knowledge Indicators](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9663/solutions/observability/nightshift/context/knowledge-indicators): Promote query KIs to rules, or exclude wrong KIs.