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);
}
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);
}
}
host (hostname | other-routing-engine | scc-master)
{
facility severity;
allow-duplicates
exclude-hostname
explicit-priority;
facility-override facility;
log-prefix string;
match "regular-expression";
match-strings [match-strings...]
routing-instance routing-instance-name;
source-address source-address;
port port-number;
}
log-rotate-frequency frequency;
routing-instance routing-instance-name;
server {
routing-instances (routing-instance-name | all | default) {
disable;
source-address source-address;
time-format(millisecond | year | year millisecond);
}
Hierarchy Level
[edit system]
Release Information
Statement introduced before Junos OS Release 7.4.
IPv6 addresses using dedicated management instance mgmt_junos supported in Junos OS Release 18.1R1.
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. As of Junos OS 18.1R1, supports IPv6 addresses
using dedicated management instance mgmt_junos.
console—Send log messages
of a specified class and severity to the console.
file—Send log messages
to a named file. As of Junos OS 18.1R1, supports IPv6 addresses using
dedicated management instance mgmt_junos.
host —Remote location
to be notified of specific log messages. As of Junos OS 18.1R1, supports
IPv6 addresses using dedicated management instance mgmt_junos.
log-rotate-frequency—Configure the interval for checking logfile size and archiving messages.
server—Enable a syslog
server for compute nodes and VMs in an App Engine.
source-address—Include
a specified address as the source address for log messages. As of
Junos OS 18.1R1, supports IPv6 addresses using dedicated management
instance mgmt_junos.
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.