Skip to main content

Managing Rules

The Behavior Rules page lists all the rules being processed by the EventWatch engine.

On Configuration → Behavior Rules, the rules are listed one row per rule, with the rule's Name and description, Category, Tags, an Active switch, and Last Updated. See Behavior Rules for the page in detail.

Behavior Rules page showing the search bar with the sort drop-down and the Search, Behavior Filters, and Create Rule buttons, the facet panel on the left, and the rule table with name, category, tags, active switch, and last-updated columns

Click a rule's row to open its detail panel. Its header carries the rule's name, its category and origin, repository rule (read-only) for a rule supplied by a repository such as Fluency, and an on/off switch; below are the View Rule, Clone, and Download JSON buttons, and the rule's overview, description, tags and risks, MATCHING BEHAVIOR FILTERS, and raw JSON.

Rule detail panel for a repository rule, showing the View Rule, Clone, and Download JSON buttons and the Overview, Description, Tags & Risks, Matching Behavior Filters, and Raw JSON sections

The panel of a rule written on this account has no origin line, and offers Edit (in place of View Rule), Clone, Download JSON, and a red Delete.

Duplicating a Rule​

It is best practice to duplicate a rule prior to editing it. As many rules are first implemented via the "resource sync", editing the default rule exposes the rule to be overwritten if there is a change in the default rule.

It is best to duplicate the rule, edit the copy, and then deactivate the original rule with its Active switch.

Click the rule's row, then Clone in its detail panel. Clone opens the Add Behavior Rule dialog pre-filled from the source rule, with the source rule's name and _clone appended in Name. The Bucket Category starts empty, so fill it in before saving.

Add Behavior Rule dialog opened by Clone, on the 01 Bucket Definition step, with the name AD_Audit_Log_Cleared_clone, the source rule's description, the AD tag, Event Type and Search Profile carried over, an empty Bucket Category, and the Import Rule, Cancel and Next buttons

Deactivating the Original​

An active rule shows a blue Active switch in the rule table; an inactive one, a grey switch. Click it to switch the rule off. The change is saved at once; there is no separate save step. The switch in the rule's detail panel works the same way.

Deleting Rules​

Just like it is best to duplicate a rule to prevent an overwrite, it is best to deactivate a rule instead of deleting it. A rule you should delete is one that was written only for this instance and is not a default rule. Deleting a default rule means that the rule, when updated, will be written back into the system and activated.

To delete a rule of your own on Configuration → Behavior Rules, click its row and then Delete in its detail panel. The page asks Are you sure you want to delete the behavior rule <rule name>?; confirm, and the rule is removed (see Rule Detail Panel).

Editing a Rule​

As noted above, it is best to use a combination of first duplicating a rule before editing it. Editing the rule will push the rule into production when saved.