logs/dmesg
Read the kernel ring buffer with relative timestamps and human-readable output. Filter by severity levels or use privileged access if restricted.
Instructions
Reads the kernel ring buffer (wraps dmesg --human, relative timestamps). Read-only. Output is cut to the LAST 30 KiB with a [WARNING: Output truncated to last 30KB] prefix and cannot be paged; narrow it with level, a comma list of emerg, alert, crit, err, warn, notice, info, debug (err,warn). On hosts with kernel.dmesg_restrict=1 an unprivileged call fails (dmesg's error is returned); use privileged: true (needs a grant). output_format is accepted and ignored: the reply is always plain text. For older history or service logs use logs/journal-control, for login records logs/logins, for drive faults disks/health.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | Comma-separated levels from emerg, alert, crit, err, warn, notice, info, debug (e.g. 'err,warn') | |
| privileged | No | Run as root - needed when kernel.dmesg_restrict=1. Needs a grant for this tool in mcp-sudo.yaml | |
| output_format | No | Ignored - the reply is always plain text |