Lecture #12 System Monitoring and Logging
Learner Outcomes
View and edit the syslog.conf file to find valuable log files.
Configure logrotate to rotate system log files.
Configure logwatch to condense and summarize important logging information.
Agenda
View the logfiles found under
/var/log
.
Configure syslog.conf to separate valuable messages from routine messages.
Configure logrotate to manage old logfiles.
Analyze log output from logwatch and from the log files themselves.
Assignment
Do
Lab 10
Read those sections of Chapter 13 having to do with the Linux kernel.
Extra Credit
Lab 10x
Resources
PowerPoint Slides
Lecture 12
Archive
Relevant Commands and Files
Commands
Files
who
- logs login information
/var/log/wtmp
syslogd
- logs system information
/etc/syslog.conf
logrotate
- rotates log files
/etc/logrotate.d/*
logwatch
- summarises log files
/etc/logwatch/*