Viewing and Managing Log Files Flashcards
Log file categories
System
Service
Event
Application
A logging system implemented by the journald daemon which stores logs in a binary format that can be viewed by using the journalctl utility
systemd journal
An option for journalctl that viewd messages for a particular systemd unit
-u unit
An option for journalctl that follows the journal for the latest message
-f
An option for journalctl that jumps to the end of the hournal
-e
An option for journalctl that adds explanation texts from the message catalog
-x
An option for journalctl that shows entries from a specified date since and until
-S -U
Settings for the systemd journal can be updated by modifying what?
/etc/systemd/journald.conf or by adding configuration files to /etc/systemd/journald.conf.d/.
A utility that can be installed and is installed by default on many distributions in order to manage log files? It helps ensure that log files do not become too large and dictates how they will be stored on the host
logrotate
The main config file for log rotate is
/etc/logrotate.conf and additional configurations may be added to /etc/logrotate.d
By default logrotate creates a crontab file in /etc/cron.daily which will be executed daily
true