The following are some basic debugging tools and approaches to debug issues in the CoreOS cluster.
Systemd-Journal takes care of logging all the kernel and systemd services. Journal log files from all the services are stored in a centralized location in
/var/log/journal. The logs are stored in the binary format, and this keeps it easy to manipulate to different formats.
Here are some common examples that shows how to use Journalctl:
Journalctl: This lists the combined journal log from all the sources.
Journalctl –u etcd2.service: This lists the logs from
Journalctl –u etcd2.service –f: This lists the logs from
etcd2. service like
Journalctl –u etcd2.service –n 100: This lists the logs of the last ...