Skip to content

Add kernel log viewer - #631

Open
brandonhs wants to merge 4 commits into
mainfrom
618-add-kernel-logging
Open

brandonhs wants to merge 4 commits into
mainfrom
618-add-kernel-logging

Conversation

@brandonhs

Copy link
Copy Markdown
Member

Summary

Adds a kernel log viewer under Logs → Kernel in the sidebar.

  • Backend: KernelLogService reads /dev/kmsg into a 5000-entry buffer and emits new entries over socket.io (kernel_log). GET /api/logs/kernel returns {available, logs}. If /dev/kmsg can't be opened (no root, containers), it logs a warning and the page shows an "unavailable" message instead.
  • Frontend: New /log-viewer/kernel page with a dmesg-style live view, search, minimum-level filter, .txt export and a "Jump to latest" tab that appears when scrolled up. The sidebar Logs item now has Application / Kernel sub-items.

Uses /dev/kmsg rather than /proc/kmsg as the issue suggested, since reading /proc/kmsg consumes records and would starve journald/rsyslog.

To test, inject lines with echo "<3>test error" | sudo tee /dev/kmsg.

Fixes #618

Type of change

  • Bug fix
  • Feature / Refactor
  • Breaking change
  • Misc.

Quick Checklist

  • I have reviewed my own code.
  • I have tested these changes locally.
  • I have tested these changes on the following platforms (optional):
    • SVC
    • microSVC (optional)
    • SVC Pro

🤖 Generated with Claude Code

Stream the kernel ring buffer from /dev/kmsg to the frontend over
socket.io and add a Kernel page under Logs in the sidebar with search,
level filtering, export and a jump to latest control.

/dev/kmsg is used instead of /proc/kmsg since reads from /proc/kmsg
consume records, starving journald/rsyslog.

Closes #618

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@brandonhs brandonhs linked an issue Nov 16, 2026 that may be closed by this pull request
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Preview build: preview-pr-631 (v0.9.0-pr631.e1ea141, built from e1ea141)

curl -s https://raw.githubusercontent.com/DeepWaterExploration/dweOS/main/install.sh | sudo bash -s preview-pr-631

Rebuilt on every push. Closing this pull request deletes the preview.

brandonhs and others added 3 commits November 16, 2026 14:07
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only necessary because previous generation was on an older version of
frontend dependencies.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add kernel logging

1 participant