Because logging is stored in the volatile folder, the data will be lost after a reboot or power outage. When these logs are important to troubleshooting, Persistent Logging can be enabled to retain a copy in the event of a restart.
To enable Persistent Logging from the GUI:
- Log into the web interface
- Navigate to Auditing :: Settings
- Check the box for Enable Persistent Logs
- Optional: edit the list of Log Files: to retain
- Default list: dlog.log,messages,wtmp,
- Add additional logs as comma separated entries without spaces
- Click Save
To enable Persistent Logging from the CLI:
- Log into the CLI using SSH or console connection
- Navigate to the Audit related settings: cd /settings/auditing/settings/
- Enable Persistent Logging: set enable_persistent_logs=yes
Optional: edit the list of files to retain: set persistent_log_files=dlog.log,messages,wtmp,
Add additional logs as comma separated entries without spaces
Save the changes: commit
To access Persistent Logs from the GUI:
- Log into the web interface as admin user
- Navigate to Access :: Table
- Click Console
- Go to root shell: shell sudo su -
- Navigate to the folder: cd /var/local/LOGS
Copy the file(s) to /home/admin: cp * /home/admin/
Replace * with specific files if desired
- Return to the main GUI window
- Click File Manager
- Click home_admin
- Click specific files to download each
To access Persistent Logs using SCP:
You can use a graphical SCP client (i.e. WinSCP) or the basic CLI scp command. In either case the files will be located in /var/local/LOGS.