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 file as follows:
root@philip-virtual-machine:/var# ll /var/log/syslog
-rw-r----- 1 syslog adm 48664 Mar 1 15:38 /var/log/syslog
root@philip-virtual-machine:/var# tail -f /var/log/syslog
Mar 1 14:31:52 philip-virtual-machine snapd[725...