You can configure an event rule to customize alert content. You can customize the
order of the fields and select which fields display. The fields in the left-hand work area
of the Transform and Compose Alert Output section of an event rule
are the fields that appear in the generated alert.
Avant de commencer
Role required: evt_mgmt_admin
Pourquoi et quand exécuter cette tâche
You can customize alert content by adding the required event fields and modifying
the text in the fields. Remarque : When creating regex expression for input, ensure that you create input with
the variables in sequential order. While variables can be skipped for inclusion,
the selected order must be maintained.
Format alert text by using one or both of these methods: Tableau 1. Format alert text
| Format method |
Description |
| Transform |
Create a field to display in an alert. The field and its
value appear in the Additional
Information section or in the Alert
Tags section. In the Event
Input pane, the new field is listed in the
Expressions section. |
| Compose |
Determine which text to display in the selected
field. |
Procédure
-
Navigate to .
-
Click New or open an event rule.
-
Click Transform and compose alert output.
In this section, you can use the Transform mode and the
Compose mode.
-
To transform information in fields—standard mode:
Remarque : In this step, the selection of text is made in standard edit mode. In this
mode, undo is available.
- Click the required field in the Event Input pane.
The value and contents of the selected field appear in the workarea on
the left.

- Select standard edit mode
.
- Using the pencil cursor, highlight the required text. You can
double-click text in the field to select a word
or select the required text and symbols. Remarque : If
Accessibility enabled

is selected in System Settings, standard edit mode is not
available

.
- Select a field name from the list or enter the required expression name.
Fields that appear in the list are existing event fields, additional
info fields or previously defined alert tags (fields prefixed with
"t_"). The field name appears in the Expressions
pane and the selected text is highlighted. Both the text and the
expression name are highlighted in the same color. Each additional
expression that you create, plus its value, is highlighted in a
different color.

Remarque : Transform field names cannot contain a ‘ (single
quote) character.
- Click Done. The expression name appears in the
Expressions section of the Event
Input pane.

- If you click an expression or its value in the Event
Input pane, the details display in the workarea on the
left.
-
To transform information in fields—regex mode:
Remarque :
- In regex mode, undo is not available.
- When building a regex expression from variables that are highlighted
in the event, place the selected variables in the same order that
they appear in the event field.
- When composing the event rule regex, specify the terms using an
exact match of the input from the event fields. For example, for the
text
vhxy2stlgwc_8888_hec03v012979, the regex
^([^_]+)_
looks as if it should catch the text
“vhxy2stlgwc” that appears before the
underscore. However, it does not work as this text is not an exact
match. Use the full regex, as
follows:^([^_]+)_.*
- The Java Matcher parser is used for the regex engine. Ensure that
you use a Java parser to test the regex.
- If the regex does not match the entire string when parsing data, the
event rule will not capture the event, and no parsing takes
place.
- The Java regex engine “matches” method is used. With this
implementation, the regex engine attempts to match the entire input
sequence against the specified pattern. Other matching methods, for
example, the find method, are not supported.
- No regex flags are set by default, except the
Pattern.DOTALL flag. With this implementation
of Java regex, the DOT character ‘.’ matches any character,
including a line terminator.
- Aside from
Pattern.DOTALL, other regex flags cannot
be changed.
Lookahead is supported. However,
Lookbehind is not supported.
- Click the required field in the Event Input pane.
The value and contents of the selected field appears in the workarea on
the left.
- Select regex edit mode
.
- Select the required text and symbols
. Replace the highlighted text with (.*) to create a regex
expression.
- In the Expressions pane, click the
Select or Add Field field.

- Select a field name from the list or enter the required expression name.
Fields that appear in the list are existing event fields, additional
info fields or previously defined alert tags (fields prefixed with
"t_"). The field name appears in the Expressions
pane.

Remarque : Transform field names cannot contain a ‘ (single
quote) character.
- Click Done.
Remarque :
- When building a regex expression from variables that are highlighted
in the event, place the selected variables in the same order that
they appear in the event field.
- When composing the event rule regex, specify the terms using an
exact match of the input from the event fields. For example, for the
text vhxy2stlgwc_8888_hec03v012979, the regex ^([^_]+)_ looks as if
it should catch the text “vhxy2stlgwc” that appears before the
underscore. However, it does not work as this text is not an exact
match. Use the full regex, as follows: ^([^_]+)_.*
-
To compose text, in the Transform and compose alert output
section, click in the required field.
Compose text in the alert fields by performing any of these
actions:
- Drag a field from the Event Info pane into the required field.
- Use the Event Info pane as a reference of which fields are available.
Write the field name details, using the format ${<fieldname>}, where
"$" means "use the value". Between the brackets, the name of the event
field replaces the <fieldname> variable.
- Freely enter text, spaces, or characters. For example, use spaces or
underscore symbols (_) to make the text in the alert field
readable.
-
To specify fields that must display in the generated alert, select the
Manual attributes check box.
Remarque : These fields, and their values, display in the Additional
Information section or in the Alert
Tags section for attributes prefixed with "t_".
-
In the left-hand column, enter a value.
-
In the right-hand column, either drag a value from the Add or
Expression fields or type in a value.
When entering a value with attributes prefixed with "t_", a drop-down
list appears with all the previously defined "t_" attributes.
-
Click Save or Update.
Que faire ensuite
You can filter event rules. See Filter the events that an event rule applies to.