312-39 practice question 15 of 35
Which of the following command is used to view iptables logs on Ubuntu and Debian distributions?
Full set: 100 questionsOn Debian-based Linux distributions, including Ubuntu, the kernel's logging facility (klogd or its equivalent in systemd-journald) directs kernel messages to /var/log/kern.log. Since iptables is a kernel-level firewall operating within the netfilter framework, its log entries are considered kernel messages. A Security Operations Center (SOC) analyst would use a command like tailf or tail -f to monitor this file in real-time for firewall-related events.
A. The path /var/log/sys/kern.log is incorrect. The sys subdirectory is not the standard location for this log file on Debian or Ubuntu systems.
C. The file /var/log/messages is the standard destination for general system activity logs on Red Hat-based distributions (like RHEL, CentOS, Fedora), not Debian/Ubuntu.
D. The path /var/log/sys/messages is incorrect, combining the non-standard sys directory with the log file name used by a different family of Linux distributions.
Ubuntu Community Help Wiki, "SystemLog". This official documentation specifies that /var/log/kern.log is the file that "contains kernel log messages."
The Debian Administrator's Handbook, 2nd Edition (2021), Section 8.3.1. "Log Files". The handbook states, "The kernel's messages are in a separate file, /var/log/kern.log".
Keep practicing
Take the free 312-39 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other 312-39 practice questions
- Question 1What type of event is recorded when an application driver loads successfully in Windows?
- Question 2Wesley is an incident handler in a company named Maddison Tech. One day, he was learning …
- Question 3Which of the following attack can be eradicated by disabling of "allow_url_fopen and allo…
- Question 4Which of the following technique protects from flooding attacks originated from the valid…
- Question 5John, SOC analyst wants to monitor the attempt of process creation activities from any of…
- Question 6Mike is an incident handler for PNP Infosystems Inc. One day, there was a ticket raised r…
