Q: How can I save or view logs when using Embedded or LiveCD platforms since the logs get erased at boot?
A: Here are 4 typical solutions:
Basically you want to change the location where the log files are kept, from the RAM disk to permanent media. There are a couple of different ways to do this. Probably the easiest way is to use WebGUI Tab> System|Advanced|rc.conf
. Add a new Variable
(path to a directory that will not be overwritten on boot where you will store the files) and Description
Description: Log files location.
Set up a Syslog server to receive and store log entries. This is probably overkill for most people.
Periodically copy the log files to a mount point that will not be overwritten at boot. You can use a simple one-liner in CRON or local rsync, etc.. If you are trying to figure out why the system crashes, this method is not as useful as #1 and #2, unless you get lucky and the logs are copied a split second before the crash.
Configure e-mail and send yourself a report periodically. As with #3 this is good for historic or comparison purposes but not so good for dealing with crashes.
| Advanced || Basic XigmaNAS Tune-up || ⇒22.214.171.124