108.2 System Logging Flashcards
Format for sending log messages to a remote server.
facility.priority action
Valid priorities in facility.priority include:
panic, alert, crit, err, warn, notice, info, debug
Difference with /etc/syslog.conf:
emerg and warning
Log daemon that tracks and maintains system logs of system activities.
syslogd
Command to enable syslogd utility to receive messages from the network.
syslogd -r
Command to specify a syslogd configuration file other than /etc/syslog.conf
syslogd -f
Command to turn on syslogd debug mode.
syslogd -d
Command to specify a time interval between two timestamp lines in a log.
syslogd -m
A shell command interface to the syslog system log module.
logger
A component of systemd that manages and views log files created by the journal component of systemd.
journalctl
Used to access binary systemd journal log files.
A system daemon that intercepts and logs kernel messages.
klogd - Kernel Log Daemon
No config file, only command line options
klogd does what?
- Tracks kernel messages by prioritizing them.
- Listens to the source for kernel messaging and intercepts the messages.
- Runs as a client of syslogd where the kernel messages are sent through syslogd.
- Can also act as a stand-alone program.
The highest priority level in /etc/syslog.conf.
emerg
Priority order from highest to lowest in /etc/syslog.conf.
emerg, alert, crit, err, warning, notice, info, debug
Valid facilities in facility.priority include:
auth, user, kern, cron, daemon, mail, locale
The best way to run the logrotate command and why.
In a daily cron job, because it prevents log files from becoming too large.