Choose the representative file containing rsyslogd modules, selectors, and actions.
Which path is appropriate?
/etc/rsyslog.conf is the conventional main configuration file for rsyslogd.
Detailed explanation
/etc/rsyslog.confCorrect. /etc/rsyslog.conf is the standard main configuration path.
Correct. /etc/rsyslog.conf is the standard main configuration path.
/etc/logrotate.confIncorrect. logrotate.conf controls rotation policies.
Incorrect. logrotate.conf controls rotation policies.
/etc/systemd/journald.confIncorrect. journald.conf configures systemd-journald.
Incorrect. journald.conf configures systemd-journald.
/var/log/messagesIncorrect. /var/log/messages is output data, not configuration.
Incorrect. /var/log/messages is output data, not configuration.
Try it yourself
An example you can run in a temporary verification environment.
test -f /etc/rsyslog.conf && printf '%s\n' /etc/rsyslog.conf || printf '%s\n' 'rsyslog not installed'Expected result
/etc/rsyslog.conf、またはrsyslog not installedKey points
- Main rsyslog config
- Actions route messages
- Separate from log output
Notes
- Environment: Linux / file存在確認のみ
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.