Common Log Files for Troubleshooting
This page provides a comprehensive list of important log file paths in Ubuntu Server environments commonly used at Voltage Park.
Log Type | Log Path |
System Log |
|
Kernel Log |
|
Boot Log (dmesg) |
|
Authentication Log |
|
NVIDIA Installer Log |
|
Slurm Controller Log |
|
Slurm Node Daemon Log |
|
Docker Log |
|
NFS Logs |
|
NGINX Access Log |
|
NGINX Error Log |
|
Apache Access Log |
|
Apache Error Log |
|
MySQL / MariaDB Error Log |
|
PostgreSQL Log |
|
UFW Log |
|
Fail2Ban Log |
|
APT History Log |
|
How to Access and Read Log Files
Logs are essential for troubleshooting issues in a server environment. You can access log files using the command line in Ubuntu. Most of these logs are located in the /var/log/ directory. Below are a few common commands to access and read log files:
View Logs in Real-Time: Use
tail -fto follow the most recent updates in a log file:sudo tail -f /var/log/syslogView Entire Log File: Use
catto display the entire contents of a log file:sudo cat /var/log/kern.logSearch for Specific Terms: Use
grepto filter log entries for a specific keyword:sudo grep "error" /var/log/syslogView Compressed Logs: Archived logs are often compressed with
.gz. You can usezcatto read them (may need installing withapt-get install:sudo zcat /var/log/syslog.1.gz