Rules and expressions
To use the Expression Eval Tool, select More > Expr Tool from the hyperlink menu at the upper-right corner of the page. The following screen is displayed:
This tool has two text input windows:
- The Match Expression window accepts a correlation pattern.
- The Target String window accepts a target string that is the particular message that you test the match expression against
The Target String field has a maximum length of 1000 characters.
To test the expression, enter a match expression, a target string and then click Submit to test the expression.
The result of the expression evaluation is displayed at the bottom of the screen. The result is that either the Expression Matches or the Expression Does Not Match.
At the bottom of the screen, the Expanded Match Expression value is displayed (including any global variable and macro substitution, as discussed further) and also the Normalized Target String (with all letters down cased and multiple blanks squeezed out of the message).
The Expanded Match Expression is particularly useful in learning the behavior of global variables and macros, as the Expression Eval Tool shows the final actual match expression, with any macro and global variable names replaced by their actual values.
You can use this tool to quickly test the BMC Defender Server Match Expression capabilities and learn the general behavior of BMC Defender Server correlation functions.