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

# Alert Utility

<img src="https://mintcdn.com/zeliot/X-8fUt5oTsJKUcrM/images/condense/v2.4.0/utilities/rwKRGO3QthZ6EMqqYblg%252Fblobs%252FZoTTT6Kv7sF3MlzzarqV%252Fimage.png?fit=max&auto=format&n=X-8fUt5oTsJKUcrM&q=85&s=a1a1c5547795c99a294d92c33bb59c52" alt="" width="2304" height="3330" data-path="images/condense/v2.4.0/utilities/rwKRGO3QthZ6EMqqYblg%2Fblobs%2FZoTTT6Kv7sF3MlzzarqV%2Fimage.png" />

## **Overview**

The **Alert Utility** is a real-time monitoring tool that allows users to define conditions on streaming data and trigger alerts when those conditions are met for a specified duration. Alerts are published to an output topic for further action without manual intervention.

## **Key Features**

### **Real-Time Alerting**

Dynamically monitors data streams and triggers alerts instantly when conditions are met.

### **Flexible Rule Configuration**

Supports multiple conditions (e.g., `>`, `<`, `=`) on numeric, string, and boolean fields.

### **Configurable Alert Duration**

Set a time window (0–1800 seconds) to ensure alerts only trigger after conditions persist.

### **Topic-Based Integration**

Reads from a single input topic and publishes alerts to a designated output topic.

### **Grouped Alerts**

Aggregates alerts by a user-defined key (e.g., `device_id`, `user_id`) for targeted monitoring.

### **No-Code Setup**

Intuitive UI for rule creation—no scripting required.

## **How to Use the Alert Utility**

> **Prerequisites**
>
> * Admin or Developer access in Condense
> * Kafka topics created with proper permissions
> * Basic understanding of your data schema

### **Step 1: Access the Alert Utility**

<img src="https://mintcdn.com/zeliot/X-8fUt5oTsJKUcrM/images/condense/v2.4.0/utilities/rwKRGO3QthZ6EMqqYblg%252Fblobs%252F3HgIIYhFUd34ANjUypoT%252Fimage.png?fit=max&auto=format&n=X-8fUt5oTsJKUcrM&q=85&s=09038b3fa6448814a1ddb1563eb4f9ce" alt="" width="2304" height="1201" data-path="images/condense/v2.4.0/utilities/rwKRGO3QthZ6EMqqYblg%2Fblobs%2F3HgIIYhFUd34ANjUypoT%2Fimage.png" />

1. Log in to your Condense account
2. From the main menu, select **Transforms**
3. Click on **Alert Utility** from the Transforms page

### **Step 2: Choose Configuration Method**

#### **Option A: Auto-Fill from Topic (Recommended)**

<img src="https://mintcdn.com/zeliot/X-8fUt5oTsJKUcrM/images/condense/v2.4.0/utilities/rwKRGO3QthZ6EMqqYblg%252Fblobs%252FR4XhprJCDibzZTiIdKWW%252Fimage.png?fit=max&auto=format&n=X-8fUt5oTsJKUcrM&q=85&s=6ae8dc240ae6c8ae130cb043d72f5633" alt="" width="2304" height="3288" data-path="images/condense/v2.4.0/utilities/rwKRGO3QthZ6EMqqYblg%2Fblobs%2FR4XhprJCDibzZTiIdKWW%2Fimage.png" />

1. Click **"Choose a Topic"** under *Read Topic.* It auto-populates schema fields for the configuration of the Alert utility.

<Info>
  If the topic is empty, the user will not be able to set up the configuration for the Alert utility
</Info>

#### **Option B: Manual JSON Upload**

<img src="https://mintcdn.com/zeliot/X-8fUt5oTsJKUcrM/images/condense/v2.4.0/utilities/rwKRGO3QthZ6EMqqYblg%252Fblobs%252F7TDnvESZ3oVegnsCcq2i%252Fimage.png?fit=max&auto=format&n=X-8fUt5oTsJKUcrM&q=85&s=1982ce34b1ca1a5f7f7e283621e9a060" alt="" width="2304" height="3291" data-path="images/condense/v2.4.0/utilities/rwKRGO3QthZ6EMqqYblg%2Fblobs%2F7TDnvESZ3oVegnsCcq2i%2Fimage.png" />

Click "Upload" and provide JSON as well as validate it. It auto-populates schema fields for the configuration of the Alert utility.

<Info>
  Manual JSON must exactly match your Kafka topic schema
</Info>

### **Step 3: Set Up Configurations for Topics**

1. Enter a descriptive **Utility Name** for your Alert configuration
2. Select or specify the **Input Topic** that will provide data to the utility
3. Group incoming records by a selected **Group By** key field to configure alert logic
4. Specify the alert duration to control how long a condition must persist before triggering an alert
5. Define a unique **Output Topic** for the alerts utility.

### **Step 4: Configure Rules for Alert**

1. Click **Add Rule**
2. For each rule:
   * **Field Name**: Select from auto-populated list (never type manually)
   * **Condition**: Set operator (>, \<, =) and threshold
3. Grouping Rules - Click **"Add Group"** to combine multiple rules *(Example: Group "Engine Alerts" with rules for temperature AND pressure).* Rules follow logical evaluation order.

### **Step 5: Deploy**

Real-Time Rule Preview - The top preview bar shows your current rule structure (Updates instantly as you add/change rules)

#### Check the preview bar to verify:

* Correct grouping with parentheses
* Logical operator priority matches your intent

1. Click **Deploy Utility**
2. Go to **Pipelines** > Your Alert Name to monitor your alert deployment on the pipeline.

<Info>
  The process of editing or deleting a deployed utility remains the same
</Info>

## **Editing an Alert Configuration**

<img src="https://mintcdn.com/zeliot/X-8fUt5oTsJKUcrM/images/condense/v2.4.0/utilities/rwKRGO3QthZ6EMqqYblg%252Fblobs%252FcWWxwuaGjYht7mY3FvkJ%252Fimage.png?fit=max&auto=format&n=X-8fUt5oTsJKUcrM&q=85&s=bc85fa8d8deab9d506ad4143939133db" alt="" width="2304" height="1200" data-path="images/condense/v2.4.0/utilities/rwKRGO3QthZ6EMqqYblg%2Fblobs%2FcWWxwuaGjYht7mY3FvkJ%2Fimage.png" />

1. Navigate to the **Pipelines** page.
2. Select the deployed **Alert Utility** you want to modify.

<img src="https://mintcdn.com/zeliot/X-8fUt5oTsJKUcrM/images/condense/v2.4.0/utilities/rwKRGO3QthZ6EMqqYblg%252Fblobs%252FkIZcrzOMaMCbIQmdZxCq%252Fimage.png?fit=max&auto=format&n=X-8fUt5oTsJKUcrM&q=85&s=526e0d82d94439847fd9354e0c53bef3" alt="" width="2304" height="3183" data-path="images/condense/v2.4.0/utilities/rwKRGO3QthZ6EMqqYblg%2Fblobs%2FkIZcrzOMaMCbIQmdZxCq%2Fimage.png" />

3. Click **Edit Configurations** to open the utility configuration.

<img src="https://mintcdn.com/zeliot/X-8fUt5oTsJKUcrM/images/condense/v2.4.0/utilities/rwKRGO3QthZ6EMqqYblg%252Fblobs%252FBtPCTD5C29OzKpDk1SmS%252Fimage.png?fit=max&auto=format&n=X-8fUt5oTsJKUcrM&q=85&s=32b2d00d67752152e04e81351b8f1d95" alt="" width="2304" height="3243" data-path="images/condense/v2.4.0/utilities/rwKRGO3QthZ6EMqqYblg%2Fblobs%2FBtPCTD5C29OzKpDk1SmS%2Fimage.png" />

4. Update the required configuration, including:
   * Utility Name
   * Input Topic
   * Output Topic
   * Group By field
   * Alert Duration
   * Rule conditions
   * Variables used in rule expressions *(New in v2.4.0)*
5. Review the updated rule expression using the preview bar.
6. Click **Deploy Utility** to apply the updated configuration.

<Info>
  Starting with **Condense v2.4.1**, variables used in Alert Utility rule expressions can be edited directly without recreating the utility. This simplifies updates when field names, thresholds, or rule logic change.
</Info>

## **Deleting an Alert Configuration**

1. Navigate to the **Pipelines** page
2. Select the deployed Alert Utility you wish to remove
3. Click the **Delete Utility** button
4. Confirm deletion in the prompt window

## Frequently Asked Questions (FAQs)

#### Q1: Can I monitor multiple input topics with one alert configuration?

No, each alert configuration can only monitor a single input topic. If you need to monitor multiple topics, you'll need to create separate alert configurations for each.

#### Q2: How does the "Alert Duration" setting work?

The Alert Duration determines how long a condition must be continuously met before an alert is triggered. For example, if you set it to 60 seconds, the specified condition must persist for a full minute before an alert is sent to the output topic.

#### Q3: Can I send alerts to multiple output topics?

No, each alert configuration can only send alerts to a single output topic. If you need to distribute alerts to multiple destinations, consider implementing additional logic downstream from your output topic.

#### Q4: What field types are supported for alert conditions?

The Alert Utility supports Integer, Float, String, and Boolean field types.

#### Q5: What condition types are available for rule configuration?

The available conditions include greater than (>), less than (\<), equal to (=), matches (for strings), and between (for ranges).

#### Q6: Can I create rules in bulk?

No, rules must be added individually through the interface. Bulk rule creation is not currently supported.

#### Q7: How do I know if my alert utility is functioning correctly?

You can verify alert functionality by:

1. Checking the status on the Pipelines page
2. Monitoring the output topic for alert messages

#### Q8: Can I temporarily disable an alert without deleting it?

The current version does not support temporarily disabling alerts. You would need to delete the alert configuration and recreate it when needed again.
