Repository navigation
Conversation
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>
|
Preview build: curl -s https://raw.githubusercontent.com/DeepWaterExploration/dweOS/main/install.sh | sudo bash -s preview-pr-631Rebuilt on every push. Closing this pull request deletes the preview. |
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a kernel log viewer under Logs → Kernel in the sidebar.
KernelLogServicereads/dev/kmsginto a 5000-entry buffer and emits new entries over socket.io (kernel_log).GET /api/logs/kernelreturns{available, logs}. If/dev/kmsgcan't be opened (no root, containers), it logs a warning and the page shows an "unavailable" message instead./log-viewer/kernelpage with a dmesg-style live view, search, minimum-level filter,.txtexport and a "Jump to latest" tab that appears when scrolled up. The sidebar Logs item now has Application / Kernel sub-items.Uses
/dev/kmsgrather than/proc/kmsgas the issue suggested, since reading/proc/kmsgconsumes records and would starve journald/rsyslog.To test, inject lines with
echo "<3>test error" | sudo tee /dev/kmsg.Fixes #618
Type of change
Quick Checklist
🤖 Generated with Claude Code