I'm having trouble with lockups / crashes / etc. How can I see the syslog following a reboot?
All 3 of the methods below will continually write the syslog (as it changes) to the flashdrive up to the moment the lockup / crash / reboot of the server happens.
unRaid runs completely from RAM, so there is normally no way to view the syslog from one boot to another. However, there are a few different ways to grab the syslog from one boot to another.
Method Preferred: ENABLE THE SYSLOG SERVER AND MIRROR THE SYSLOG TO FLASH DRIVE (SETTINGS - SYSLOG SERVER)
Method 1: Via the User Scripts Plugin:
Install the user scripts plugin, and add this script to it set to run at First Array Start Only: https://forums.lime-technology.com/topic/48707-additional-scripts-for-userscripts-plugin/?page=5#comment-581595
Method 2: Via Fix Common Problems Plugin
Within Fix Common Problems settings, put it into Troubleshooting mode
Method 3: Via a screen session or at the local keyboard & monitor
tail -f /var/log/syslog > /boot/syslog.txt
Pros / Cons
Method 1 will create a new syslog file on the flash drive at every boot so that you can compare / not lose any historical data for reference
Method 2 logs a ton of extra information that may (or may not) help with diagnosing any issues. This extra information being logged however may contribute to a crash due to the logging being filled up if troubleshooting mode is enabled for more than a week or so. Also requires you to re-enable it on every boot (by design)
Method 3 Information is identical to Method 1, but requires you to reenter the command every time you want the information. Additionally, if this is not entered at the local command prompt or via a screen session, then closing the SSH (Putty) window will stop the logging from happening.
BIG NOTE:
In the case of lockups, etc it is highly advised to have a monitor connected to the server and take a picture of whatever is on it prior to rebooting the server. It is impossible for any script to capture any errors that may have been outputted to the local monitor