Develop > Pattern Matching in Policy Rules

Pattern Matching in Policy Rules

Operations Connector uses pattern matching to determine if an event or metric record should be sent to OMi or should be suppressed.

Operations Connector compares the pattern that you specify with the data contained in XML elements (this can be any data source, such as the database or XML file record) or attributes. When the pattern is matched, the policy sends or suppresses an event or metric record, depending on the rule type.

Example: A structured log file policy contains a rule of the type "event on matched rule". A condition compares the pattern <![administrator]> with the value of "user".

If the value of "user" is administrator, the pattern does not match and the next condition is evaluated. If the value is user1, the pattern matches and an event is sent to OMi.