# Manage triggers

> Learn how to use Trigger Management to automate responses to system events — send email or Slack notifications and run custom scripts based on filtered conditions.

The Trigger Management feature enables you to create and manage custom triggers. This allows your system to automatically react to specific conditions by executing responses such as sending notifications or running custom scripts.

## Use cases {#use-cases}

- **Automated notifications:** When a specific event occurs, automatically send an email or Slack message to the relevant teams.
- **Automated script execution:** When an event matches your filtered attributes, automatically run a custom script to handle custom workflows.

## Create triggers {#create-triggers}

Follow these steps to create a new trigger.

### Create a new trigger {#create-a-new-trigger}

Create a new trigger by navigating to **Events > Triggers** and clicking **Create Trigger**.

  

### Define the conditions for the trigger {#define-the-conditions-for-the-trigger}

- **Steps:**
  To filter the conditions you want to trigger, follow these steps:

1. Click **Add Attributes**.

  

2. Use the dropdown filters and select attributes.

  

3. Check the boxes for the specific items you want and click **Next**.

  

4. To see real-time matches for your selected criteria, check the Attribute Result panel on the right.
   - **Logic and rules**: The system evaluates your selected criteria using a specific logical hierarchy to determine which events are captured.
   - **Categorization**: Criteria are organized into three primary categories: Alert Type, Severity, and Event ID.
   - **Logical Operators**:
     - **Within Categories**: Multiple selections within the same category (e.g., Severity: INFO and WARNING) are treated as "OR". This means the trigger activates if any of the selected items in that category are matched.
     - **Between Categories**: Selections across different categories are treated as "AND". This means the trigger only activates if the event matches all selected categories simultaneously.

    
      
    

5. To save the filters to your trigger, click **Next**.

  

### Set the trigger responses {#set-the-trigger-responses}

#### Option A: Send a notification when a event is triggered {#option-a-send-a-notification-when-a-event-is-triggered}

To notify you team when an event is triggered, follow these steps to configure a notification.

1. Click **Send Notification**.

  

2. Select your notification channel: **Slack** or **Email**.
3. Select the checkboxes for the email addresses or Slack channels you wish to notify and click **Set Response**.

  

#### Option B: Run a personalized script {#option-b-run-a-personalized-script}

To handle custom workflows with a script, see [Apply custom scripts to triggers](/docs/knowledge-base/cubecos/custom-scripts-for-triggers#configure-custom-scripts-to-run-on-event-triggers) and go to step 5.

### Add details and save {#add-details-and-save}

1. **Enter a trigger name**: Provide a unique name for your trigger. If the name already exists, the system displays an error message and disables the save button.
2. **Enter a description**: Briefly describe what the trigger does.
3. **Save**: To finalize your trigger, click **Create**. The system will add your new trigger to the trigger list.

  

:::info

The trigger name is immutable. Once you save the trigger, you cannot change its name.

:::

## View and manage triggers {#view-and-manage-triggers}

You can view the status (Active or Inactive) of all your triggers in the trigger list. You can also perform the following actions:

- **Edit:** Modify the condition and response settings of an existing trigger. You cannot change the trigger name.
- **Activate / Deactivate:** Toggle the operational status of a trigger. A confirmation modal will appears when you deactivate a trigger.
- **Delete:** Permanently remove a trigger from your list. A confirmation modal appears to prevent accidental deletions.

    
      
    

## Viewing Trigger Events and Analytics {#viewing-trigger-events-and-analytics}

Once your triggers are active, you can monitor their activity and visualize the data directly from the Events menu.

- **Filter the event data**: Both the Events list and the Chart view allow you to filter the data to help you find exactly what you need. You can refine your results using the following attributes:
  - `systems`
  - `host`
  - `instance`

- **View triggered events:** To see a detailed log of all specific events, navigate to the **Events** tab, then the **Events** subtab.

    
      
    

- **View event charts:** To see a pie chart representation of your event data, navigate to the **Events** tab, then the **Charts** subtab. To see the provides quick visual summary of your trigger activity.
