Event Tagging
Event Tagging enables you to set additional attributes for events that are not necessarily present in the events. You can also use this to overwrite parsed attributes already in the event. Event Tagging can be accomplished in two ways:
-
Policy Based Event Tagging: By writing tagging rules using event attributes.
-
File Based Event Tagging: By using tagging information from files.
Please read the Implementation Notes before creating your Event Tagging.
Creating Policy Based Event Tagging
Policy Based Event Tagging consists of your custom condition (rule) and one or more tags. Each incoming event is checked against these Policy Based Event Taggings sequentially from top-to-bottom order. When a match is found, the tag or attribute defined in that Policy Based Event Tagging is applied to the event. All matches are considered, so latter Policy Based Event Taggings may overwrite the Taggings set in earlier matches. Use the Up and Down buttons to adjust this order.
To create a Policy Based Event Tagging, take the following steps:
-
Navigate to Admin > Settings > Event Pipeline > Event Tagging.
-
Under Policy based Event Tagging, click +.
-
In the Name field, enter the Event Tagging name.
-
Add a check to the Enabled checkbox to enable.
-
Under Condition, define the condition(s) for event tagging. See Defining Rule Conditions.
-
Under Tag, specify the tag attribute. To add another tag, under Row, click on +.
-
Click Save when done.
-
Click the Apply (
) icon to apply the saved changes. Policy Based Event Tagging will now use the latest changes.
Creating File Based Event Tagging
File Based Event Tagging allows you to set event attributes by using values defined in a Comma Separated Values (CSV) file. This approach may be useful when there are too many Policy Based Event Taggings to write and the Tagging may be available in a file likely exported from another system.
You can write multiple File Based Event Tagging rules. Each incoming event is checked against these rules sequentially from top-to-bottom order. When a match is found, the tag or attribute defined in that file is applied to the event. All matches are considered, so latter files may overwrite the tags set in earlier matches. Use the Up and Down buttons to adjust this order.
The CSV file must adhere to the following:
|
Row |
Objects |
|---|---|
| First row | Column Header (Key). |
| Following rows | Key-Value pair. There must be a corresponding Key-value pair for each Key. |
Each object is separated by a comma (,).
Example Structure/Content:
Key1,Key2,Key3,Key4
Key1-Value1,Key2-Value1,Key3-Value1,Key4-Value1
Key1-Value2,Key2-Value2,Key3-Value2,Key4-Value2
After providing the CSV file, you must then configure the condition and tag(s). An example is available here.
To create File Based Event Tagging, follow these steps:
-
Navigate to Admin > Settings > Event Pipeline > Event Tagging.
-
Under File based Event Tagging, click +.
-
In the Name field, enter the Event Tagging name.
-
From File, click Choose File, select a .csv file, and click Save.
-
From the Organization drop-down list, select the organization that this policy will apply to (Global, or a specific organization).
-
Under Condition, define the condition for event tagging. See Defining Rule Conditions.
-
Under Tag, specify the tag attributes. To add another tag, under Row, click +.
-
Click Save.
-
Click the Apply (
) icon to apply the saved changes. File Based Event Tagging will now use the latest changes.
File Based Event Tagging Example
To illustrate Event Tagging via file, let's say we have the following CSV file content:
IP,Department
10.1.1.1,Engineering
10.1.1.2,Engineering
10.2.2.1,Finance
10.2.2.2,Finance
After uploading the file, you configure the following:
Condition:
| Event Attribute | Operator | Column Name |
|---|---|---|
| Source IP | = | IP |
Tag:
| Event Attribute | Operator | Column Name |
|---|---|---|
| Dept | = | Department |
Prior to Event Tagging:
Event E1: Source IP = 10.1.1.1
Event E2: Source IP = 10.2.2.1
With Event Tagging:
Event E1: Source IP = 10.1.1.1, Dept: Engineering
Event E2: Source IP = 10.2.2.1, Dept: Finance
Implementation Notes
The following tagging rules should be kept in mind:
-
For each event, first Policy Based Event Taggings are applied and then File Based Event Taggings are applied.
-
For each Policy Based Event Tagging and File Based Event Tagging:
-
Rules are applied sequentially in top-to-bottom order.
-
All matches are considered, so latter rules may overwrite earlier matches.
-
-
Policy Based Event Tagging and File Based Event Tagging each have their own Apply buttons. Click these separately to deploy the changes. Only after this operation will new tagging changes be applied.