2.4 KiB
2.4 KiB
Logs
The Logs tab is a searchable stream from the active agent: host journal (default), anomalies, and the agent audit trail.
Layout
| Region | Role |
|---|---|
| Header | Follow (auto-refresh) · Refresh |
| Sources | Journal · Anomalies · Audit |
| Time | 15m / 1h / 6h / 24h window |
| Search | Message substring; journal Max priority + Unit |
| Stream | Time · severity · unit · message · actions |
Sources
| Source | Who | What |
|---|---|---|
| Journal (default) | Admin | Host journalctl (Linux; on by default) |
| Anomalies | Viewer+ | Threshold / z-score events |
| Audit | Admin | Mutating RPC trail (data/audit.log) |
The tab prefers Journal whenever your role allows it (including after you connect as admin). Non-admin sessions fall back to Anomalies; Journal/Audit tabs stay disabled until you have admin.
Search & follow
- Open Logs (defaults to Journal when admin).
- Pick a time window.
- Type in search (
/focuses the field; Esc clears). - Journal: optional Max priority (and higher) and Unit (e.g.
peardata.service). - Search or wait for debounce; Clear resets filters.
- Follow polls every 5s; Refresh /
rruns once.ftoggles Follow. - Copy exports visible lines; per-row Copy for a single line.
- Anomaly rows: Show / Correlate → Charts (same as Alerts).
- Load more appears when the agent returns a cursor (anomaly/audit).
Match text is highlighted in the message column.
Host journal
Installer setup (default):
peardata∈systemd-journal- Unit
SupplementaryGroups=systemd-journal PEARDATA_JOURNAL=1in.env/ unit Environment
Disable with PEARDATA_JOURNAL=0. Non-Linux agents report journal as unsupported.
See CONFIGURATION and SECURITY.
Keyboard
| Key | Action |
|---|---|
/ |
Focus search |
Esc |
Clear search (when focused) |
r |
Refresh |
f |
Toggle Follow |
API
GET /api/v3/logs?source=journal&q=error&limit=100
Default REST bind: http://127.0.0.1:18888. RPC: queryLogs. Audit/journal require admin over P2P.
vs Alerts
| Alerts | Logs | |
|---|---|---|
| Focus | Live anomaly feed + notifications | Searchable multi-source history |
| Sources | Anomalies only | Journal + anomalies + audit |