Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

syslog (System)

Syntax

Hierarchy Level

Description

Configure the system log messages types to send to different destinations such as files, remote destinations, user terminals, or the system console.

The remaining statements are explained separately.

Options

archive

Define parameters for archiving log messages.

allow-duplicates

Allow the repeated log messages for all targets.

alternate-format

Configure to append node name with daemon name.

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

Enable a syslog server for compute nodes and VMs in an App Engine.

shell

Configure to log command executed from the shell.

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.

  • millisecond — Include milliseconds in time stamp.

  • year — Include year in 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.

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.

Option alternate-format introduced in Junos OS Evolved Release 20.4R2.

Option shell introduced in Junos OS Evolved Release 23.1R1.

application-status option introduced in Junos OS Evolved Release 23.1R1.