27 lines
882 B
Markdown
27 lines
882 B
Markdown
# Logs
|
|
|
|
The last lines of the router's logs.
|
|
|
|
## Sub-tabs
|
|
|
|
- **Journal:** the systemd journal of one of the router's units, or of all units.
|
|
- **Files:** a log file the router lists in its setting `web.log_files`. Files are added on the
|
|
router as root:
|
|
|
|
```sh
|
|
vpn-config-edit set web.log_files /var/log/syslog,/var/log/auth.log
|
|
```
|
|
|
|
## Controls
|
|
|
|
- **Unit** or **File:** the log shown.
|
|
- **Lines:** 100, 200, 500 or 1000 of the last lines; the router answers at most 1000 at a time,
|
|
and reads at most the last MiB of a file.
|
|
- **Follow:** reads the log every 2 seconds and keeps the view at its last line, as `tail -f`
|
|
does. Refresh is off meanwhile.
|
|
- **Refresh:** reads the log again. A log is also read when the unit, the file or the number of
|
|
lines changes.
|
|
|
|
Older lines stay on the router: `journalctl` and the files themselves, over SSH or the
|
|
[Shell](shell.md).
|