mediumMultiple ChoiceObjective-mapped
XK0-006 Practice Question: A system administrator is configuring centralized…
A system administrator is configuring centralized logging for a cluster of web servers. Each web server runs rsyslog and needs to forward its Apache access logs to a central log server at 192.168.1.100 over UDP port 514. The administrator adds the following line to /etc/rsyslog.conf on each web server: '*.* @192.168.1.100:514'. After restarting rsyslog, no logs appear on the central server. The administrator checks the network connectivity and finds that the central server is reachable and listening on UDP 514. Which additional configuration is most likely required on the web servers to forward the Apache logs?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Configure Apache to send access logs to syslog using the 'syslog' facility in the LogFormat directive.
The wildcard '*.*' in rsyslog forwards all logs that are already being sent to syslog. However, Apache by default writes access logs directly to a file (e.g., /var/log/httpd/access_log) and does not send them to syslog. Therefore, to forward Apache access logs to the central server, Apache must be configured to send its logs to rsyslog using the 'syslog' facility. This is done by modifying the Apache LogFormat directive to include 'syslog' as the log destination, or by using the CustomLog directive with a syslog: prefix. Option C correctly addresses this. Option A is irrelevant because imuxsock is for receiving local syslog messages, not for Apache logs. Option B creates a filter in rsyslog but does not make Apache send logs to syslog. Option D changes the protocol but the issue is not about protocol mismatch; the central server is listening on UDP and reachable.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Enable the 'imuxsock' module in rsyslog to listen on a Unix socket for Apache logs.
Why it's wrong here
imuxsock listens for local syslog messages, but Apache does not use it unless configured.
- ✗
Create a configuration file in /etc/rsyslog.d/ with a more specific filter for Apache logs.
Why it's wrong here
Adding a filter does not cause Apache to send logs to syslog; Apache must be configured to do so.
- ✓
Configure Apache to send access logs to syslog using the 'syslog' facility in the LogFormat directive.
Why this is correct
By default Apache writes to files; to forward via syslog, it must use the syslog output.
- ✗
Change the forwarding protocol from UDP to TCP in both the sender and receiver.
Why it's wrong here
UDP should work fine; the issue is that Apache logs are not entering syslog at all.
Go deeper
Related to this question
About these practice questions
Courseiva writes every XK0-006 question from scratch — 979 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This XK0-006 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the XK0-006 exam.