System Logs (/logs)
v1.0
·
Updated 4 days ago
System Logs: /logs
/logs is a filterable, read-only log viewer for four sources. By default it reads the system logs of the last 24 hours and shows only error, warn, critical and fail lines.
Options
| Option | Effect |
|---|---|
--source=system|ssh|package|docker | choose the source (default system) |
--last=Nh|Nd | time window, e.g. --last=6h or --last=2d (default 24h) |
--grep=PATTERN | additional regex filter |
--all-levels | not only errors/warnings, but all lines |
Sources
- system —
/var/log/messages+ DSM synolog (requires grouplogor a sudoers entry) - ssh —
/var/log/auth.logorjournalctl -u sshdas a fallback - package —
/var/log/synopkg.log - docker — logs of all running containers via
/usr/local/bin/docker logs
/logs --source=ssh --last=12h --grep=Failed
/logs --source=docker --all-levels
Up to 1000 lines are read and the first 100 shown; if there are more, the command reports the number of truncated lines.