Definition of Configuration Rule Files

You must define a configuration file containing a rule to format log messages before they are forwarded.

The formatted forwarding feature is used to format log messages prior to forwarding. The Forwarding function uses the configuration file that defines the formatting rules. All log messages that match the forwarding rule are formatted.

Rules consist of Regular expressions that are applied to the log messages. If log messages are matched with the Regular expression, then the extracted strings are substituted into the forwarded message before forwarding it to the defined destination.

You can upload only one configuration file for each Message Routing rule. Each configuration rule file can be used across multiple destinations or rules, and can have a maximum file size of 1 GB.

The configuration rule file is used for:

A configuration rule file can consist of multiple rules. A rule consist of either regexp/template pattern or shred/replace pattern.

A regexp/template rule consists of two lines; a Regular expression used to match and extract patterns and the forwarded message template. A shred/replace pattern rule defines shred= option. You can also have both types of rules in the same configuration rule file.

First, regexp/template rules are applied in the order of their appearance in the configuration file. The system stops applying rules as soon as the first match is detected. The shred/replace rules are applied after a single scan across all regexp/template rules. Only those log messages that match any regexp rule are forwarded. However, if you use forward all option, any log message are forwarded even without matching any regexp rule.

The configuration rule file must satisfy the following criteria: