050-720 · Question #357
Which are configuration files of syslog-ng? (Choose 3.)
The correct answer is D. /etc/sysconfig/syslog F. /etc/syslog-ng/syslog-ng.conf G. /etc/syslog-ng/syslog-ng.conf.in. See the full explanation below for the reasoning.
Question
Which are configuration files of syslog-ng? (Choose 3.)
Options
- A/etc/logging
- B/etc/sysconfig/log
- C/etc/log/syslog-ng
- D/etc/sysconfig/syslog
- E/etc/log/syslog-ng.conf
- F/etc/syslog-ng/syslog-ng.conf
- G/etc/syslog-ng/syslog-ng.conf.in
How the community answered
(40 responses)- A5% (2)
- B3% (1)
- C3% (1)
- D83% (33)
- E8% (3)
Community Discussion
6The stem here is asking you to identify real, standard syslog-ng paths, so your job on test day is to cut through the noise by eliminating anything that looks fabricated. Options A, B, C, and E are distractors built to look plausible, but none of them correspond to actual syslog-ng installation conventions. The correct answers are D (/etc/sysconfig/syslog), F (/etc/syslog-ng/syslog-ng.conf), and G (/etc/syslog-ng/syslog-ng.conf.in). F is the primary active configuration file, G is the template or pre-processed input file that some distributions use to generate F, and D is the sysconfig initialization file that controls how the daemon starts on SysV-style systems. When you see a "choose 3" question like this, rank your picks by confidence, lock in the two you are certain about first, then use elimination on the remaining options rather than guessing blind.
I almost picked E and F but spinning up syslog-ng showed D, F, and G are the real ones.
The answers are D, F, and G, and the key to locking these in is understanding that syslog-ng uses more than one file to do its job on SUSE systems. The main config is F, /etc/syslog-ng/syslog-ng.conf, which is where your sources, filters, and destinations all live. G, /etc/syslog-ng/syslog-ng.conf.in, is the template file that SuSEconfig processes to generate that main conf, so it belongs in the picture too. D, /etc/sysconfig/syslog, handles the daemon startup parameters and is read by the init scripts, making it the third legitimate config location. A quick mnemonic to reject the traps here: if the path says /etc/log/ instead of /etc/syslog-ng/, it is fabricated, and /etc/sysconfig/log (option B) has no real role in syslog-ng's world either.
D, F, G. E looks right but that path is totally made up.
B has to be one, our senior showed me /etc/sysconfig/log last week, also F and G look right from the docs.
Hey Yusuf, totally get the confusion, but it is D not B because the actual logging configuration is handled through rsyslog.conf or the journald config, not /etc/sysconfig/log, so you and your senior might be thinking of a different file. F and G are spot on though, good catch on those.