brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: mirror the syslog to the boot drive, but only for a few days

Troubleshooting
~/tips/tip-unraid-mirror-syslog-boot

Settings > Syslog Server > Mirror syslog to boot drive: Yes

Keeps the system log across a crash by writing it to the boot drive while it happens.

Unraid’s system log lives in RAM. When the server crashes, it takes the evidence along.

By default Unraid copies the syslog to the boot device only at a graceful shutdown. A crash gives you nothing. There is a setting that writes the log to the boot device as it happens.

Settings > Syslog Server > Mirror syslog to boot drive: Yes

With it on, entries are written to both /var/log/syslog and /boot/logs/syslog in real time. After the next reboot the file is renamed to syslog-previous. You can read it under Tools, Syslog, syslog-previous, and it is included in the diagnostics.

That helps when a server crashes at random and you want to see the last lines. The docs call it a short-term method, good for a few days.

The docs carry the caveat as a warning. Mirroring to the boot device can wear out the flash drive when you leave it on for a long time, and that drive holds your licence and your configuration. So switch it back off once you have what you need. For long-term logging the docs point to a local or remote syslog server instead.

Further reading: Unraid docs: Capture diagnostics and logs, On this site: run diagnostics in the terminal when the WebGUI will not load, On this site: point the syslog server at the server itself to keep logs on a share

More Troubleshooting tips Get-NetTCPConnection -State Listen modinfo -p usb_storage ps -o pid,lstart,etime,cmd -p 1234 sudo lsof -nP -p 1234 fc-match Helvetica All Troubleshooting tips (21) All topics

Link