--- title: "Configure custom rules" slug: "configure-custom-rules-1" tags: ["ESM"] updated: 2026-09-12T21:25:11Z published: 2026-09-12T21:25:11Z canonical: "docs.trellix.com/configure-custom-rules-1" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Configure custom rules Configure Trellix Application Data Monitor, database, or correlation rules, using logical and regular expressions or predefined rules as templates. 1. From the dashboard, click ![GUID-0177D71C-5A80-43D5-9629-5D396CF2895F-low.png](https://cdn.us.document360.io/0d453a50-e1da-4d4a-9409-fea7959614d8/Images/Documentation/uuid-02f09313-c1e5-2026-c72f-7f2ad21785f1(4).png?sv=2026-02-06&spr=https&st=2026-11-22T15%3A58%3A33Z&se=2026-11-22T16%3A58%3A33Z&sr=c&sp=r&sig=F2CD7aXm%2FO%2FckdEOfW7fV%2Bn58WW6IwQSIKsQvQPA3oE%3D) and select **Policy Editor**. 2. View existing custom rules: 1. Select the Filters/Tagging → Filter tab. 2. Click the **Advanced** bar at the bottom. 3. In the **Origin** field, select **user-defined**. 4. Click **Run Query**. 3. Click **New**, then configure database and correlation rules: - Identify the rule name, description (that appears in the **Policy Editor**), a severity setting, and rule type. - Select the alert action the rule triggers. - Change the default normalized ID. - Select tags that define the categories to which the rule belongs. - To set rule logic, drag and drop the wanted logical elements and components. 4. Define values that events must match to trigger a correlation rule: - Apply filters to event data, flow data, or both. - To select if a specific number of values must occur in a specific field before the component triggers, click ![GUID-911771E2-BC63-4466-BDB0-4D486C98E7FA-low.png](https://cdn.us.document360.io/0d453a50-e1da-4d4a-9409-fea7959614d8/Images/Documentation/uuid-5a1b22cb-943b-8674-d56f-7127bb8beb6b(2).png?sv=2026-02-06&spr=https&st=2026-11-22T15%3A58%3A33Z&se=2026-11-22T16%3A58%3A33Z&sr=c&sp=r&sig=F2CD7aXm%2FO%2FckdEOfW7fV%2Bn58WW6IwQSIKsQvQPA3oE%3D) . - **Distinct Values** — Select the number of values that must occur. - **Monitored field** — Select the field that the values must occur in. - Select to have the component trigger only if matches do not occur in the time specified in the **Time Window** field at the gate level. - Select to customize the grouping of the events in a correlation rule. If you have a rule that groups by a specific field, you can override one of its components to match on a field that you specify on the **Configure Group By overrides** page. Click **Configure** to set the override field. 5. Define expression component settings: - Select to exclude the values you select. - Select the metric reference for this expression. - Type a component description. - If you want this rule to reference a Trellix Application Data Monitor dictionary on Trellix ESM, select it on the drop-down list. - Select the relational operator. Trellix Application Data Monitor: - Equal to = - Not equal to != - Greater than > - Greater than equal to >= - Less than equal to <= - Less than < - Select whether the rule triggers when any of the values match the defined pattern, or only if all values match the pattern. - Filter by selected variables: - If the variables icon is next to the field, click it and select the variables. - If there is no icon, type the value following the instructions in the **Valid Input** field. - View hints for the values that you can enter in the **Value** field. :