rtk-ai/rtk

Feature request: journalctl support

Open

#1,819 建立於 2026年5月9日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)Rust (2,914 fork)batch import
area:clienhancementhelp wantedplatform:linuxpriority:medium

倉庫指標

Star
 (48,085 star)
PR 合併指標
 (平均合併 11天 1小時) (30 天內合併 45 個 PR)

描述

Command

journalctl

Usage stats

37 occurrences in the last 30 days — 3rd most common unhandled command in rtk discover output.

Typical usage patterns

journalctl -b -1 --no-pager -p err -n 50
journalctl -u <service> --since "1 hour ago"
journalctl -f

Expected filtering opportunity

Similar to how rtk ps aux achieves ~92% token reduction by stripping irrelevant process lines, journalctl output contains significant noise:

  • Boot metadata headers
  • Kernel/systemd noise lines unrelated to the queried service
  • Timestamp repetition
  • Priority/facility prefixes that add bulk without value

A rtk journalctl filter could keep only the log message body and strip structural noise, targeting ~60-80% reduction on typical outputs.

Environment

  • systemd-based Linux (Raspberry Pi, aarch64)
  • Common in server/embedded monitoring workflows

貢獻者指南