Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

syslog (System)

Syntax

syslog {archive {(binary-data| no-binary-data);files number;size maximum-file-size;start-time "YYYY-MM-DD.hh:mm";transfer-interval minutes;(world-readable | no-world-readable);}console {facility severity;}file filename {facility severity;explicit-priority;match "regular-expression";archive {(binary-data| no-binary-data);files number;size maximum-file-size;start-time "YYYY-MM-DD.hh:mm";transfer-interval minutes;(world-readable | no-world-readable);}structured-data {brief;}}host (hostname | other-routing-engine | scc-master) {facility severity;explicit-priority;facility-override facility;log-prefix string;match "regular-expression";source-address source-address;structured-data {brief;}port port number;}log-rotate-frequency frequency;server server name;source-address source-address;time-format(millisecond | year | year millisecond);user (username | *) {facility severity;match "regular-expression";}}

Hierarchy Level

[edit logical-systems logical-system-name system],[edit system]

Release Information

Statement introduced before Junos OS Release 7.4.

Statement introduced in Junos OS Release 9.0 for EX Series switches.

Statement introduced in Junos OS Release 11.1 for the QFX Series.

Support at the [edit logical-systems logical-system-name system] hierarchy level introduced in Junos OS Release 11.4.

Description

Configure the types of system log messages to send to files, to a remote destination, to user terminals, or to the system console.

The remaining statements are explained separately.

Options

archive

Define parameters for archiving log messages.

console

Send log messages of a specified class and severity to the console.

file

Send log messages to a named file.

host

Remote location to be notified of specific log messages.

log-rotate-frequency

Configure the interval for checking logfile size and archiving messages.

server

Name of the system log server in the inet.0 routing instance.

source-address

Include a specified address as the source address for log messages.

time-format

Additional information to include in the system log time stamp.

user

Notify a specific user of the log event.

Required Privilege Level

system—To view this statement in the configuration.

system-control—To add this statement to the configuration.

Published: 2013-08-15