Troubleshooting Log Files
The only real unique entity for logging on Cumulus Linux compared to any
other Linux distribution is switchd.log
, which logs the HAL (hardware
abstraction layer) from hardware like the Broadcom or Mellanox Spectrum ASIC.
This guide on NixCraft
is amazing for understanding how /var/log
works. The green highlighted
rows below are the most important logs and usually looked at first when debugging.
Log |
Description |
Why is this important? |
---|---|---|
/var/log/alternatives.log |
Information from the update-alternatives are logged into this log file. |
|
/var/log/apt |
Information the |
|
/var/log/audit/* |
Contains log information stored by the Linux audit daemon, |
|
/var/log/auth.log |
Authentication logs. Note that Cumulus Linux does not write to this log file; but because it's a standard file, Cumulus Linux creates it as a zero length file. |
|
/var/log/autoprovision |
Logs output generated by running the zero touch provisioning script. |
|
/var/log/boot.log |
Contains information that is logged when the system boots. |
|
/var/log/btmp |
This file contains information about failed login attempts. Use the
|
|
/var/log/clagd.log |
Logs status of the clagd service. |
|
/var/log/dmesg |
Contains kernel ring buffer information. When the system boots up, it prints number of messages on the screen that display information about the hardware devices that the kernel detects during boot process. These messages are available in the kernel ring buffer and whenever a new message arrives, the old message gets overwritten. You can also view the content of this file using the Note that Cumulus Linux does not write to this log file; but because it's a standard file, Cumulus Linux creates it as a zero length file. |
|
/var/log/dpkg.log |
Contains information that is logged when a package is installed or removed using the |
|
/var/log/faillog |
Contains failed user login attempts. Use the Note that Cumulus Linux does not write to this log file; but because it's a standard file, Cumulus Linux creates it as a zero length file. |
|
/var/log/fsck/* |
The Note that Cumulus Linux does not write to this log file; but because it's a standard file, Cumulus Linux creates it as a zero length file. |
|
/var/log/installer/* |
Directory containing files related to the installation of Cumulus Linux. |
|
/var/log/lastlog |
Formats and prints the contents of the last login log file. |
|
/var/log/netd.log |
Log file for NCLU. |
|
/var/log/news/* |
The Note that Cumulus Linux does not write to this log file; but because it's a standard file, Cumulus Linux creates it as a zero length file. |
|
/var/log/ntpstats |
Logs for network configuration protocol. |
|
/var/log/openvswitch/* |
|
|
/var/log/frr/* |
Logs for FRRouting. |
This is how NVIDIA troubleshoots routing. For example an md5 or mtu mismatch with OSPF. |
/var/log/rdnbrd.log |
Logs for redistribute neighbor. |
|
/var/log/snapper.log |
Log file for snapshots. |
These logs are valuable for the snapshots you take on your switch. |
/var/log/switchd.log |
The HAL log for Cumulus Linux. |
This is specific to Cumulus Linux. Any |
/var/log/syslog |
The main system log, which logs everything except auth-related messages. |
The primary log; it's easiest to |
/var/log/wtmp |
Login records file. |
|