Create Enrich automation
Alert enrichment involves transforming raw events from monitoring tools into a standard format, aiding automated grouping and response. This includes extracting fields from lengthy alert payloads or composing them into a standardized format. Additionally, you can create tags, which are metadata added to alerts for easier filtering and grouping.
始める前に
Role required: evt_mgmt_admin, evt_team_operator, or srm_responder
このタスクについて
Extracting takes values from event payload fields and places them in alert output fields, while composing combines multiple alert fields into one. For more information, see Extracting and composing alert fields.
For users familiar with the classic Event Management experience, enrich automations create event rules but with an easier interface and with better teams support. Event rules offer a few advanced features like thresholds and CI identification using IRE that are not yet available in enrich automations. Admins may also enrich alerts with event field mapping rules. Changing alert values creates an event field mapping rule with the mapping type Map field and transform value (Single field). This rule is linked to the event rule and runs simultaneously, allowing for streamlined mapping and transformation of event data to enrich alerts.
手順
- Navigate to Workspaces > Service Operations Workspace.
-
From the bottom of the navigation pane, select the AIOps configuration center icon
.
The ITOM AIOps configuration center page appears. The configuration center is a centralized workspace. Use it to configure and manage AIOps features from a single place. -
On the ITOM AIOps configuration center page, under the Optimize section, select Enrich alerts.
The Enrich alerts page is displayed.
-
Select Create automation.
By default, the Active check box is selected.
- In the Automation name field, enter the name of the automation for enriching alerts.
-
In the If these conditions are met section, set up filter criteria to identify the alerts you want to enrich.
The condition is evaluated against the raw event received from the source monitoring system and does not account for enriched fields.
- From the Assignment group field menu, select the assignment group to determine which team’s alerts will trigger the automation.
The Assignment group represents a specific team responsible for handling certain alerts. By selecting an assignment group, you ensure that only the alerts assigned to that particular team will trigger the automation. This way, the automation is targeted and only activates for relevant alerts associated with the selected team.
注:- If you’re logged in to the instance with an administrator role (evt_mgmt_admin), all of the assignment groups are available. Additionally, you can select All groups to enable generating alerts for any of the available groups.
- If you’re an team operator, only the groups you’re a member of are available.
- Only members of the selected group or administrators can update or delete the automation.
- From the Source field menu, select the monitoring tool from where the alert is generated.
- Set up the conditions by selecting the field, operator, and field value. Then, add more conditions using OR or AND operators.To add another set of conditions, select + New condition set. You can also manually add an additional info field if you don’t see it in the drop-down list.注:Select Load past events to view previous events when creating the automation.
- From the Assignment group field menu, select the assignment group to determine which team’s alerts will trigger the automation.
-
In the Then, apply the following actions section, select the automation actions that will be triggered by this automation.
You must select at least one action.
- Extract alert fields: Retrieves alert field values from the event payload and places them in an alert output field.
- Copy or compose fields: Merges various alert fields, tags and text to generate a composed alert output.
- Change alert values: Maps the current value of alert fields to specified new values.
- Improve configuration item (CI) identification: Identifies CIs other than a host for better alert grouping, team assignment, and service health.
Option Action Extract alert fields - Enable the Extract fields toggle switch.
- From the Extract from field menu, select a value. The menu displays the standard event fields, additional info, and tags. The field value is then displayed. You can also manually
enter a field name that is not displayed and add your own value.
The example source events pane displays a sample of recent events in your system. If no events are displayed, you may create an event, see Create or edit an event rule.
- In the Regular expression field, create a regular expression to extract the value that you want to extract. 注:You can compose text using regular expression (regex) format conventions. Use one or more capture groups with parentheses to extract parts of the input. Capture groups in the regular expression are assigned to alert outputs based on the order in which they appear. The regex must match the entire input, so consider surrounding your regex with
.*on each end. For example,(\w+).acme.com.*captures the host name in a fully qualified domain name. The parser for the regex engine is Perl Compatible Regular Expressions (PCRE) compatible. Nested JSON data is preprocessed to strip quotes and replace colons with equal signs. -
In the Alert output field, select an alert field or an alert tag. You can also manually enter a new field name.
If you want to add an alert tag, select the Set as a tag check box.ヒント:Create alert tags that can be shared across sources for easier filtering and grouping, such as the out-of-the-box tags. - Select Preview multiple events to verify that the regular expression (regex) is general-purpose enough to correctly extract values across many examples. 注:This option is available only when example source events are available and matched with the regex filter.
To include additional fields for extraction, select + Add fields.
Copy or compose fields - Enable the Copy or compose fields toggle switch.
- From the Composition field, select alert fields and/or alert tags, manually enter a field name or even add free text. Alert fields are displayed in the
${field}syntax format. - In Output to field, select an existing alert field or alert tag, or manually enter an alert field. Output to field is an enriched alert containing the
composed alert data. For easier grouping, you can select a tag from the menu. If you want to use the new field name as a tag for grouping, select the Set as a tag check box.ヒント:Create alert tags that can be shared across sources for easier filtering and grouping, such as the out-of-the-box tags.
To create additional alert data compositions, select + Add fields.
Change alert values - Enable the Change alert values toggle switch.
- In Alert field to change values for field, enter the field in the alert that you want to map values for.
- In the When value is field, enter original value in the alert field that you want to change.
- In the Change it to field, enter the new value that will replace the original value in the alert field.
To add more field values, select + Add value and to add more fields to map, select + Add field to map.
Improve configuration item (CI) identification This option allows you to change how alerts are bound or linked to a Configuration Item (CI), ensuring alerts are associated with the correct IT components for better visibility and faster issue resolution.
The default and most common way to bind alerts to CIs is based on the Node field. This works out of the box with no configuration needed. Use it by populating the Node field in your alert with a CI’s Name, Fully Qualified Domain Name (FQDN), IP, or MAC address. This supports host CIs including Computers, Operating Systems (OS), Switches, Routers, or any CI type or any class that extends the [cmdb_ci_hardware] table.
You may enable this action to improve the CI identification for other types of CIs such as processes or service instances. The system searches for a matching CI in the appropriate CMDB table based on the selected CI type. For example, if you select VMware Virtual Machine Instance as the CI class, the system searches for a matching record in the [cmdb_ci_vmware_instance] table using details from the event rule record, specifically the Additional info fields.
- Enable the Improve configuration item (CI) identification toggle switch.
- Select which CI class you’d like to identify: In the CI class field, specify the CI class for which the event’s node field is evaluated during CI
identification. This determines the type of CI the system attempts to identify first.
Select View items to see the list of CIs of this type and their attribute values.
- Identify the CI when the following alert fields match the CI attributes: In this section, map alert fields to CI attributes to help the system find the correct CI:
- Alert field: Select the alert field that contains identifying information.
- CI attribute: Select the CI attribute that the alert field must map to.
-
Use Advanced options to control how the system treats the alert node field during CI identification.
- Node field behavior: Choose one of the following:
- Consider node field: Uses the alert’s node value during CI identification.
- Ignore node field: Ignores the alert’s node value.
- Use all matching additional info fields: Select this check box to use all matching fields from the event’s Additional Info for CI identification instead of mapping individual fields.
- Node field behavior: Choose one of the following:
- + Add fallback: Add
fallback CI class and field mappings to define alternate identification logic. If the primary configuration does not identify a CI, the system evaluates each fallback in order until it finds a
match.
Ensure that the Node field in the alert is populated correctly to identify a host CI. The CI you are identifying must have a runs on relationship to the host CI or be mapped to the host.
- Ensure that at least one CI attribute is present in the Additional info field of the alert.
For instructions on how to populate these fields, see Set additional info fields to match CI attribute format. The system attempts to match values from the Additional info field of the alert with the CI table. If a match is found, the alert is bound to the corresponding CI.
- Select Test CI identification to test the CI identification on sample events.
After successful CI identification, the system displays a message with the relevant details.
If CI identification fails, the system shows a message explaining the details.
For more information on CI binding, see Binding alerts to CIs.
-
In the And finally section, to continue running other enrichment automations with same filter conditions after this automation is executed, select Run other enrich alert
automations.
If you select Don't run other enrich alert automations, additional automations of this type will stop running after this automation is executed once. If the automation is managed by an administrator, it will stop running administrator-owned automations but will continue to run automations owned by other assignment groups.
-
In the Automation details section, provide an order and automation description.
- In the Order field, enter the automation order.注:Automations run in order from the lowest to the highest. Ensure there are no enrichment automations with a lower order number that have matching conditions and have Apply additional automations of this type set to false. Otherwise, this may prevent subsequent automations from running.
During alert processing, enrichment automations assigned to specific teams are applied first, based on the Order field. After these are evaluated, enrichment automations assigned to Global / All groups are applied. If multiple automations match, the automation with the highest order value is selected to improve CI identification.
The Automation is managed by field displays the team or assignment group who owns, edits, and can delete this automation. The assignment group is the same as the one defined in the If these conditions are met section.
- In the Automation description field, enter a brief description of the automation.
- In the Order field, enter the automation order.
-
Select Save automation.
A notification appears when the automation is successfully saved. Otherwise, an error message is displayed. The enrich automation that you created appears on the Enrich alerts page where you can view, edit, or delete the existing automation.
次のタスク
You can manage alerts more effectively by grouping similar alerts together with the help of Create Group automation.