2025-03-14 21:59:59 -06:00
|
|
|
# logread
|
|
|
|
|
|
|
|
|
|
> Read the `logd` ring buffer log.
|
|
|
|
|
> More information: <https://openwrt.org/docs/guide-user/base-system/log.essentials>.
|
|
|
|
|
|
|
|
|
|
- Print the log:
|
|
|
|
|
|
|
|
|
|
`logread`
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
- Print `n` messages:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`logread -l {{n}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Filter messages by (Keyword/Regular Expression):
|
|
|
|
|
|
|
|
|
|
`logread -e {{pattern}}`
|
|
|
|
|
|
|
|
|
|
- Print log messages as they happen:
|
|
|
|
|
|
|
|
|
|
`logread -f`
|
2025-04-03 20:36:56 -06:00
|
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
|
|
`logread -h`
|