Linux kernel log Recipe
- Ensure you're logged in as
root. - The kernel log may be quite large (e.g. multiple GB), so consider changing to a directory with plenty of free space.
- Execute the following command to write the kernel log to a file:
journalctl --since "24 hours ago" &>> diag_kernel_$(hostname).txt || cat /var/log/messages &>> diag_kernel_$(hostname).txt || cat /var/log/syslog &>> diag_kernel_$(hostname).txt || dmesg &>> diag_kernel_$(hostname).txt - Consider gzipping the file:
gzip diag*txt - Upload
diag*