Configuring Optional Features for Forwarded Messages on a TX Matrix Plus Router
From the perspective of the user interface, the routing matrix appears as a single router. The TX Matrix Plus router (also called the switch-fabric chassis SFC) controls all the T1600 or T4000 routers (also called the line-card chassis LCC) in the routing matrix.
To configure additional optional features when specifying how the connected T1600 or T4000 LCCs forward messages to the SFC, include statements at the [edit system syslog host sfc0-master] hierarchy level. To include priority information (facility and severity level) in each forwarded message, include the explicit-priority statement. To insert a text string in each forwarded message, include the log-prefix statement. To use regular expression matching to specify more exactly which messages from a facility are forwarded, include the match statement.
You can also include the facility-override statement at the [edit system syslog host sfc0-master] hierarchy level, but we do not recommend doing so. It is not necessary to use alternative facilities for messages forwarded to the SFC, because it runs the Junos system logging utility and can interpret the Junos OS-specific facilities. For more information about alternative facilities, see Changing the Alternative Facility Name for Remote System Log Messages.
- Including Priority Information in Forwarded Messages
- Adding a Text String to Forwarded Messages
- Using Regular Expressions to Refine the Set of Forwarded Messages
Including Priority Information in Forwarded Messages
When you include the explicit-priority statement at the [edit system syslog host sfc0-master] hierarchy level, messages forwarded to the TX Matrix Plus router (or the SFC) include priority information. For the information to appear in a log file on the SFC, you must also include the explicit-priority statement at the [edit system syslog file filename] hierarchy level for the file on the SFC. As a consequence, the log file with the same name on each platform in the routing matrix also includes priority information for locally generated messages.
To include priority information in messages directed to a remote machine from all routers in the routing matrix, also include the explicit-priority statement at the [edit system syslog host hostname] hierarchy level for the remote machine. For more information, see Directing Messages to a Remote Destination from the Routing Matrix Based on a TX Matrix Plus Router.
In the following example, the /var/log/messages file on all routers includes priority information for messages with
severity notice and higher from all facilities. The log
on the TX Matrix Plus router SFC also includes messages with those
characteristics forwarded from the connected T1600 or T4000 LCCs.
Adding a Text String to Forwarded Messages
When you include the log-prefix statement at the [edit system syslog host sfc0-master] hierarchy level, the string that you define appears in every message forwarded to the TX Matrix Plus router. For more information, see Adding a Text String to System Log Messages.
Using Regular Expressions to Refine the Set of Forwarded Messages
When you include the match statement at the [edit system syslog host sfc0-master] hierarchy level, the regular expression that you specify controls which messages from the connected T1600 or T4000 LCCs are forwarded to the TX Matrix Plus SFC. The regular expression is not applied to messages from the connected LCCs that are directed to destinations other than the SFC. For more information about regular expression matching, see Using Regular Expressions to Refine the Set of Logged Messages.