Skip to main content
Prepare your case

Collect node logs over SSH

For release

Use this when the node is running and you can reach it on port 100. You run the log collector on the node and copy the file to your machine.

For example: a node is NotReady, the kubelet is crashing, or a system service fails on one node.

Every node has a log collector. It packs the logs of the Kubernetes components, the system services, and the OS into one file. It doesn't run on its own, so run it before you copy the file. Otherwise you get "No such file or directory", or an old bundle from the last time someone ran it.

SSH runs on port 100 with key-only login. Run the collector on the node:

				$ syself-log-collector
			

It writes the bundle to /var/log/syself-node-report/latest.tar.gz. From a terminal on your own machine, not the node, copy it out:

				$ scp -P 100 -i <path-to-ssh-key> root@<node-ip>:/var/log/syself-node-report/latest.tar.gz .
			

If port 100 is closed to you, open it to your address with a host-firewall policy. It takes effect right away, without a node rollout. Close it again when you are done. See Emergency SSH access for reaching a node and finding its IP.

On a control-plane node, the bundle includes the Kubernetes API server audit directory. The host auditd log at /var/log/audit/ is not in the bundle; see Retrieve audit logs.

Not your case?

Back to your email

Add it to your email with the rest, then send it to us.