Define a filter to restrict to which events the event rule must apply. Configure the
filter by providing a set of conditions that each event must match to be either excluded or
included from applying to the event rule.
Before you begin
Ensure that a name is specified for the event rule.Role required:
evt_mgmt_admin
About this task
To construct the required condition statement, you can use event fields as well as additional fields that are defined in the Additional Information field of the event. Use these fields to configure
conditions that can exclude events. Alternatively, you can filter incoming events to ensure that only those events that meet the required conditions are included.
Note: Event rules filter is case-sensitive.
While working in the Event Filter tab:
- In the Event rule list, if you selected a recommended rule or an existing rule, the filter fields are populated with values from these events. You can use these filter fields to compose filter conditions.
- You can click another tab (for example, Threshold), work in that area and then return to work in the Event Filter area without losing information.
- Use the right-panel as a source of reference for which fields are available to be used when composing filter conditions.
Note: Event filters created on additional_info fields only perform a string comparison and not a numeric comparison, even if the information entered into the value field appears as if it is numeric, as depicted in the following graphic:
Note: To automatically filter out irrelevant alerts or transform and standardize alert data for better response, you can also use
Ignore automation and
Enrich automation.
Procedure
-
Navigate to .
-
Click New or open an event rule.
-
Click Event Filter.
-
To ignore events, select Ignore events that match this
filter.
All events that match this event rule are ignored. You can add more conditions to
the filter by clicking either
OR or
AND.
Note: Even if an event is ignored by an event rule, the
event is still recorded in the Event [em_event] table. Select this option to
inhibit an alert from being created and be associated with the
event.
-
To configure conditions to which the event rule must apply, click New
Criteria.
You can add further conditions by clicking either
OR or
AND.
Note: The % character is not
supported in filter conditions.
-
You can add field names to the Event Rule Simple Field Black Lists
[em_event_rule_black_list] table to either show or hide fields from the
filter.
- To remove fields from the filter and the right panel, add a new black
list field with Show in rule not selected.
- To remove fields only from the filter and still enable it to appear in
the right panel, add an exclusion list field with Show in
rule selected.
-
Click either Save or
Submit.
Example
Example showing filter conditions that are specified to run a rule when the metric
name starts with the word "disk". For this example, any resource is acceptable, as long
as it is not "cpu" and the node name is "MyServer".
Example to filter events using time conditions. In the Select
Field or add New field, select Time of event.
Specify the required time conditions, for example, anytime after
yesterday.