logread

Read syslog buffer

Used by openwrt and onion omega

-l count Get only the last count messages
-e pattern Filter messages with a regexp
-r server port remote syslog server
-F file Log file
-S bytes Log size
-p file PID file
-h hostname Add hostname to the message
-P prefix Prefix custom text to streamed messages
-f Follow log messages
-u Use UDP as the protocol
-t Add an extra timestamp
-0 Use \0 instead of \n as trailer when using TCP

/etc/config/system

log_file:string # no default
log_size:uinteger
log_hostname:string # defaults to /proc/sys/kernel/hostname
log_ip:ipaddr # must be ip
log_remote:bool:1
log_port:port:514
log_proto:or("tcp", "udp"):udp
log_trailer_null:bool:0 # default don't for TCP use 00 not \n terminator
log_prefix:string