LinuxCommandLibrary

logread

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

TLDR

Print the log

$ logread
copy
Print last N messages
$ logread -l [n]
copy
Filter by pattern
$ logread -e [pattern]
copy
Follow log in real-time
$ logread -f
copy
Display help
$ logread -h
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

-l N

Print last N messages
-e PATTERN
Filter messages by keyword or regex
-f
Follow log output in real-time
-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), syslog(3)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community