Setting up local system logging

Within a Linux environment, it is critical to have logs that can be used to identify potential bottlenecks within the system. Fortunately, we have logging turned on by default. There are different types of log file available for inspection; primarily, the /var/log directory contains various log files, each geared to different aspects of the system. We can take a look at the /var/log directory:

root@philip-virtual-machine:/etc# cd /var

From the preceding output, right off the bat, there is the /var/log/syslog file. This contains pertinent information about the functioning of the system. We can view the /var/log/syslog ...

Get CompTIA Linux+ Certification Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.