Ch10 System Logging Exam
-
The ____________ and
klogd
are two main programs that provided logging facilities for Linux prior torsyslogd
.- mlogd
- logger
- syslogd
- tlogd
-
Prior to
rsyslogd
, the daemon program that provided logging services for the Linux kernel is:SNMP
syslogd
slog
klogd
-
The daemon that provides logging services for applications and programs is:
applog
SNMP
klogd
syslogd
-
The
syslogd
facility gets the messages fromklogd
and decides the action based on configuration settings.True or False?
- True
- False
-
Logs contain a wealth of data and may include all of the following, except:
- Warnings
- Configuration settings
- Errors
- Information messages
-
System administrators can use logs for all of the following, except:
- Installing new packages
- Tuning the system for efficiency or security
- Troubleshooting software
- Troubleshooting hardware
-
Message processing tasks, handled by
rsyslogd
, are configured using _______ file./etc/syslog.conf
/etc/rsyslogd.conf
/etc/logger.conf
/etc/rsyslog.conf
-
A recently installed program appears to be malfunctioning. In which directory should you look for logs related to the new program?
/var/log
/usr/log
/etc/log
/home
-
Which of the following commands is not used to view log files on a Linux operating system?
less
echo
tail
grep
-
Which of the following files contains general and system related messages?
/var/log/boot.log
/var/log/maillog
/var/log/cron.log
/var/log/rsyslog
-
Errors relating scheduled
cron
jobs can be found at which of the following locations?/var/log/auth.log
/var/log/rsyslog
/var/log/cron.log
/var/log/crond.log
-
Each line in the
rsyslog.conf
configuration file must specify:- Action
- Selector facility
- All choices are valid
- Selector priority
-
Identify the valid
rsyslog.conf
selector facilities:(choose three)
- kern
- news
- cron
- batch
-
Arrange the following items in increasing order of priority:
alert, err, emerg, warning, crit
warning, err, alert, emerg, crit
warning, alert, err, crit, emerg
alert, warning, err, crit, emerg
warning, err, crit, alert, emerg
-
Which of the following selector settings in
rsyslog.conf
will select all kernel messages?kernel.*
kern.=err
kern.*
*.kern
-
A line in the
rsyslog.conf
file contains*
in the actions part. What does this mean?- A message is displayed to everyone who is logged in
- There is no action specified
- A text message is written into the default log file
- An asterisk *, in place of a text message, will be displayed
-
By default, the
rsyslogd
daemon creates a ________ message in the file every 20 minutes.- TIME
- STAMP
- NOTE
- MARK
-
In a centralized
rsyslog
logging setup, remote hosts must be configured to send messages. Which of the following would be the correct setting to send all messages for the warning services to the machine with the hostnamersyslogserver
?*.warning @rsyslogserver
*.warning rsyslogserver
*.warned @rsyslogserver
*.warned rsyslogserver
-
The ____________ command is used to send messages to the system logging facility.
- timer
- notice
- logger
- queue
-
Which option to the
logger
command is used to specify a tag for the log entry?-f
-t
-s
-l
-
Which of the following
logger
command options will use the message specified in thetemp_message
file?logger -s temp_message
logger -f temp_message
logger -t temp message
logger -l temp_message
-
The
rsyslog.conf
file is currently set to*.info
. Which of the following will result in more verbose logging messages?*.emerg
*.alert
*.debug
*.warning
-
Which of the following settings in
rsyslog.conf
will enablersyslogd
to log messages oferr
priority level only?mail.=err
mail.none
mail.err
mail.err;mail.!alert
-
The systemd-journal uses the
journalctl
application program to display logfiles which are stored in binary format.True or False?
- True
- False
-
The
-r
option when used with thejournalctl
command is useful because it __________.- …reverses chronological order to show the most recent files first.
- …repeats output missed previously.
- …revises log output for use with systemd systems.
- …restores deleted logs.
-
Output from the
journalctl
command is limited to seven (7) days worth of logs by default.True or False?
- True
- False
-
By default the
-n
option when used with thejournalctl
command returns:- Notes taken by a previous system administrator.
- Multiple log entries starting with the number specified.
- The last ten (10) most recent log entries.
- Nothing, the output is dumped to a null file.
-
The maximum size for persistent journal storage on a 20GB partition is:
- 2GB
- 1GB unless uncapped
- 4GB
- Unlimited
-
To remove systemd-journald log data older than two (2) weeks use the following command:
journalctl --remove2w
journalctl --vacuum2weeks
journalctl --vacuum-time2weeks
journalctl -- rotate2weeks
-
When piping a command to
systemd-cat
the output is added to systemd-journald and displayed on screen by default.True or False?
- True
- False
Subscribe
0 Comments
Newest