How to set ignore filter in Event Rules to ignore Events if they have "Time of event" fields value between 1:30 AM - 1:45 AM everyday?

Aki17
Kilo Guru

How to set ignore filter in Event Rules to ignore Events if they have "Time of event" fields value between 1:30 AM - 1:45 AM everyday?

I couldn't find the operators to define time range to specify date/time. Please let me know how to achieve this.

Best Regards,

Aki

2 REPLIES 2

Community Alums
Not applicable

Hi @Aki ,

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:
Event filter string comparison

Procedure

  1. Navigate to All > Event Management > Rules > Event Rules.
  2. Click New or open an event rule.
  3. Click Event Filter.
    Event Management filter
  4. 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.
  5. 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.
  6. 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.
    Event rule exclusion list
    • 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.
  7. 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". Event Management filter

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.

Event rule time condition

 

Mark my answer correct & Helpful, if Applicable.

Thanks,

Sandeep

NCS1
Tera Contributor

This looks encouraging as I also was looking to get a solution for similar use case. Thank you Sandeep