LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

logread

reads the logd ring buffer log on OpenWrt and similar embedded Linux systems

TLDR

Print all log messages
$ logread
copy
Follow log output in real-time
$ logread -f
copy
Print last N messages
$ logread -l [50]
copy
Filter messages by pattern
$ logread -e [pattern]
copy
Filter by syslog priority
$ logread -p [daemon.info]
copy
Print log and follow new messages
$ logread -f -e [error]
copy

SYNOPSIS

logread [options]

DESCRIPTION

logread reads the logd ring buffer log on OpenWrt and similar embedded Linux systems. It provides access to system messages stored in memory rather than on disk.

PARAMETERS

-f

Follow log output in real-time (like tail -f).
-l N
Print only the last N messages.
-e PATTERN
Filter messages matching a keyword or pattern.
-p FACILITY.LEVEL
Filter by syslog facility and priority (e.g., kern.err, daemon.info).
-t
Include a human-readable timestamp with each message.
-h
Display help information.

CAVEATS

Specific to OpenWrt and BusyBox-based systems. Ring buffer has limited size; older messages are overwritten.

SEE ALSO

dmesg(1), journalctl(1), logger(1)

Copied to clipboard
Kai