Purpose: To demonstrate how to populate active lists with the rule action. The example uses a rule that captures VPN login events and adds data to a list.
See Rule Actions Reference for more information on the Active List rule action.
The high level process involves:
Creating the active list that forms the table to store and display the data. The active list shows the number of logins by user name.
Creating the rule to capture VPN login events and send matching events to the list. The rules populate and update the list.
Purpose: To provide the table that stores login events captured by the rule.
Create the active list:
User Name and Category, both of type String. User Name as the Key field:
Purpose: To create a rule that captures VPN login events and populate the VPN Events active list. Values found in Event Name and Category Device Group fields will be used indicators of such events. A matching event triggers the rule and populates the list as follows:
|
Populate this field in the Active List |
With the value from this field in incoming events |
|---|---|
|
User Name |
Target User Name |
|
Category |
Category Device Group |
Create the rule:
Create a standard rule, also named VPN Events.
Make your list case insensitive.
Set rule conditions:
Set Conditions to capture events when the Event Name contains Login and Category Device Group contains VPN. To capture event names from various sources that might be formatted differently (for example, in all upper case, all lower case, or initial capitalization), uncheck the Case-Sensitive (
) option next to the Event Name field. This shows up in the Conditions Summary tab as follows:
Tip: More fine-grained conditions logic (as used in this example) requires more processing and can have a performance impact. For example, using “<SomeField> Contains <SomeString>” for a field lookup requires more processing than writing a field lookup like “<SomeField> = <SomeString>”.
On the Aggregation tab, select the fields for aggregation only if they are identical.
In the Add Field dialog, set Aggregation for event1 on Category Device Group and Device Custom String.
Activate the rule Actions trigger On Every Event. De-activate the other triggers.
Select Add to Active List.
Add values for User Name and Category to the active list. Map the fields as follows:
Device Custom String1Category Device Group
Test the rule:
Drag-and-drop the rules into the Real-time Rules folder to deploy them. You are prompted to move, copy, or link the rule. Linking is often most efficient.
More details are in Deploying Real-time Rules.
When the VPN Events rule is triggered, user names are added to the VPN Events active list:
A logical next step in this example scenario would be to create another rule that checks if certain user names are showing up in the active list, and then takes some action (like sending an e-mail or adding those names to a “suspicious users” list, if appropriate).