nerdexam
Juniper

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.

Operational Monitoring and Maintenance

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)
  • B
    6% (1)
  • C
    6% (1)
  • D
    89% (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.

A/var/messages

`/var/messages` is typically a file within the `/var/log` directory that stores general system messages, not a directory itself for syslog information.

B/var/syslog

While `syslog` is the service, `/var/syslog` is not the default directory; `/var/log` is the parent directory for various logs including syslog.

C/var/tmp

`/var/tmp` is a directory for temporary files that can be deleted upon reboot, not the permanent storage location for syslog information.

D/var/logCorrect

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

#syslog#file system#logging#default paths

Community Discussion

No community discussion yet for this question.

Full JN0-102 Practice