[Contents] [Prev] [Next] [Index] [Report an Error]

Default System Log Settings

Table 8 summarizes the default system log settings that apply to all platforms that run the JUNOS software, and specifies which statement to include in the configuration to override the default value.

Table 8: Default System Logging Settings

SettingDefaultOverriding StatementInstructions

Alternative facility for message forwarded to a remote machine

For change-log: local6

For conflict-log: local5

For dfc: local1

For firewall: local3

For interactive-commands: local7

For pfe: local4

[edit system syslog]
host hostname {
   facility-override facility;
}

Changing the Alternative Facility Name for Remote Messages

Format of messages logged to a file

Standard JUNOS format, based on UNIX format

[edit system syslog]
file filename {
	structured-data;
}

Logging Messages in Structured-Data Format

Maximum number of files in the archived set

10

[edit system syslog]
archive {
	files number;
}
file filename {
	archive {
		files number ;
	}
}

Configuring the Size and Number of Log Files

Maximum size of log file

J-series: 128 kilobytes (KB)

M-series, MX-series, and T-series: 1 megabyte (MB)

TX Matrix: 10 MB

[edit system syslog]
archive {
	size size;
	}
file filename {
	archive {
		size size;
	}
}

Configuring the Size and Number of Log Files

Timestamp format

Month, date, hour, minute, second For example: Aug 21 12:36:30

[edit system syslog]
time-format format;

Including the Year or Millisecond in Timestamps

Users who can read log files

root user and users with the JUNOS maintenance permission

[edit system syslog]
archive {
	world-readable;
}
file filename {
	archive {
		world-readable;
	}
}

Configuring the Size and Number of Log Files

In addition, the following messages are generated by default on specific platforms. To view either type of message, you must configure at least one destination for messages as described in Minimum System Logging Configuration


[Contents] [Prev] [Next] [Index] [Report an Error]