[an error occurred while processing this directive][an error occurred while processing this directive]

Adding a Text String to System Log Messages

To add a text string to every system log message directed to a remote machine or to the other Routing Engine, include the log-prefix statement at the [edit system syslog host] hierarchy level:

[edit system syslog host (hostname | other-routing-engine)]
facility severity;
log-prefix string;

The string can contain any alphanumeric or special character except the equal sign (=) and the colon (:). It also cannot include the space character; do not enclose the string in quotation marks (“ “) in an attempt to include spaces in it.

The JUNOS system logging utility automatically appends a colon and a space to the specified string. The string is inserted after the identifier for the Routing Engine that generated the message.


Published: 2010-04-28

[an error occurred while processing this directive]