JN0-102 · Question #195
Which directory does the Junos OS use to store syslog information by default?
The correct answer is D. /var/log. Junos OS, like many Unix-based systems, uses the /var/log directory as the default location for storing syslog and other log files.
Question
Which directory does the Junos OS use to store syslog information by default?
Options
- A/var/messages
- B/var/syslog
- C/var/tmp
- D/var/log
How the community answered
(18 responses)- B6% (1)
- C6% (1)
- D89% (16)
Why each option
Junos OS, like many Unix-based systems, uses the `/var/log` directory as the default location for storing syslog and other log files.
`/var/messages` is typically a file within the `/var/log` directory that stores general system messages, not a directory itself for syslog information.
While `syslog` is the service, `/var/syslog` is not the default directory; `/var/log` is the parent directory for various logs including syslog.
`/var/tmp` is a directory for temporary files that can be deleted upon reboot, not the permanent storage location for syslog information.
The `/var/log` directory is the standard location on Junos OS (and other Unix-like systems) where system log messages, including syslog output, are stored by default.
Concept tested: Junos OS default syslog file location
Source: https://www.juniper.net/documentation/us/en/software/junos/system-management/topics/topic-map/system-logging-overview.html#id-system-log-files
Topics
Community Discussion
No community discussion yet for this question.