← 返回命令列表

Linux command

lazyjournal 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Launch the interactive log viewer

lazyjournal

Pipe logs and filter with fuzzy search

cat [/var/log/syslog] | lazyjournal -f "[error]"

Pipe logs and filter with regex

cat [/var/log/syslog] | lazyjournal -r "[error|fatal]"

Connect to a remote system via SSH

lazyjournal --ssh "[user@host -p 2222]"

说明

lazyjournal is a TUI for reading logs from multiple sources including journald, auditd, file system, Docker and Podman containers, Compose stacks, and Kubernetes pods. It supports log highlighting and several filtering modes. Filtering capabilities include case-sensitive exact matching, fuzzy search (similar to fzf), regex patterns, and timestamp-based date/time range selection. It can list all systemd services with their current state and stream new events in real time like tail.

参数

-f
Enable fuzzy search filtering mode (case-insensitive inexact matching, similar to fzf).
-r
Enable regex filtering mode.
-c
Enable output highlighting in command-line mode.
-l, --logging
Write executed commands to a log file for debugging.
-m
Disable mouse control.
-t, --timezone-filter _offset_
Set UTC offset for date/time range filtering (default: `+00:00`).
--ssh _args_
Connect to a remote system via SSH. Accepts standard SSH arguments as a single quoted string.

FAQ

What is the lazyjournal command used for?

lazyjournal is a TUI for reading logs from multiple sources including journald, auditd, file system, Docker and Podman containers, Compose stacks, and Kubernetes pods. It supports log highlighting and several filtering modes. Filtering capabilities include case-sensitive exact matching, fuzzy search (similar to fzf), regex patterns, and timestamp-based date/time range selection. It can list all systemd services with their current state and stream new events in real time like tail.

How do I run a basic lazyjournal example?

Run `lazyjournal` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -f do in lazyjournal?

Enable fuzzy search filtering mode (case-insensitive inexact matching, similar to fzf).