Skip to content

showbytes.8

Manvendra Bhangui edited this page Feb 25, 2024 · 5 revisions

NAME

logsrv - receive log messages

SYNOPSYS

logsrv [-v] [-c ctimeout] [-d dtimeout [-r loghost] statusdir

DESCRIPTION

logsrv(8) is a log server which can be run under tcpserver(1) on logsrv port 6340. logsrv(8) can receive messages from multiple log message clients like logclient(1). The log message protocol is simple. The first line is always the hostname on which the log message client runs and subsequent lines are log messages. logsrv(8) receives these messages with the filename and unique serial number prefixed to each log message.

For each client from which log messages are received, logsrv creates a status file named hostname.status in statusdir. The status file contains the pid and the bytes accumulated from the client represented by hostname. The byte position in this status file can be displayed by showbytes(1).

logsrv can relay messages to an RPC based log server rpclog(8) using the -r option.

OPTIONS

-v
Run verbose. This option prints the log messages on descriptor 2.

-d dtimeout
Use dtimeout as the timeout for sending acknowledgement to logclient(1).

-r loghost
Apart from writing received log messages to standard out, send the message to a remote RPC message log server rpclog(8) for secure storage.

RETURN VALUE

0 if all steps were successful, non-zero otherwise. If any of the steps fail, a diagnostic message is printed.

SEE ALSO

rpclog(8), incrmesg(1), logclient(1), supervise(8), rpcbind(8) rpclog(8)

Clone this wiki locally