Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Supported Platforms

Directing System Log Messages to a Remote Machine

To direct system log messages to a remote machine, include the host statement at the [edit system syslog] hierarchy level:

[edit system syslog]
host (hostname | other-routing-engine) {facility severity;explicit-priority;facility-override facility;log-prefix string;match "regular-expression";}
source-address source-address;

To direct system log messages to a remote machine, include the host hostname statement to specify the remote machine’s IP version 4 (IPv4) address or fully qualified hostname. The remote machine must be running the standard syslogd utility. We do not recommend directing messages to another Juniper Networks switch. In each system log message directed to the remote machine, the hostname of the local Routing Engine appears after the timestamp to indicate that it is the source for the message.

For the list of logging facilities and severity levels to configure under the host statement, see Specifying the Facility and Severity of Messages to Include in the Log.

To record facility and severity level information in each message, include the explicit-priority statement. For more information, see Including Priority Information in System Log Messages.

For information about the match statement, see Using Regular Expressions to Refine the Set of Logged Messages.

When directing messages to remote machines, you can include the source-address statement to specify the IP address of the switch that is reported in the messages as their source. In each host statement, you can also include the facility-override statement to assign an alternative facility and the log-prefix statement to add a string to each message.

Published: 2014-07-23

Supported Platforms

Published: 2014-07-23