-
-
Notifications
You must be signed in to change notification settings - Fork 3
logclient.1
logclient - Send incremental messages in local logfiles to a remote log server.
logclient [ options ] remote logfile1 [logfile2] ...
logclient takes name of logs as command line arguments, and for each log, tranmits the contents of log to host remote running logsrv(8). What is sent are lines that have got incrementally added into the logfile, since the last time logclient(1) was run on the logfile(s). It checks every 5 seconds for any new lines that may have got incrementally added. This interval can be changed by passing the -i argument.
logclient(1) maintains the check point against the position last read and the message count for each logfile. All these numbers are maintained in the file logfile.seek in /usr/tmp. This directory where the checkpoint is maintained can be changed by passing the -s argument.
-v
Verbose output. Prints the data being sent to remote log server on
descriptor 1.
-l lhost
Use lhost as the local hostname to logsrv(8). logsrv(8) will
prefix all lines with lhost
-s seekdir
Directory where checkpoint files are stored. Default /usr/tmp
-f
Run in foreground. Default is to run in the background.
-p port
Use port as the port instead of the default 6340 to connect to
logsrv.
-i
Time Interval in seconds between checks for new entries in logfiles
after EOF has been reached.
-c ctimeout
Use ctimeout as timeout when making a tls connection
-d dtimeout
Use dtimeout as timeout for read and writes to loghost
-n certificate
A client certificate which should be provided in case TLS encryption is
needed.
-C cafile Specify cafile as the file containing CA certificates. Sometimes, special CA certificates are needed if an intermediate certificate used by your issuing CA expires. Note that the file given with -c is passed to SSL_CTX_load_verify_locations and thus may contain several CA certificates, which will be used during SSL connection negotiation to close any gap in the certificate chain.
-r crlfile
A list of Certificate Revocation Lists (CRLs). If present it should
contain the CRLs of the CAs in cafile and client certs that will be
checked for revocation.
-m
Match host with common name in certificate (CN)
0 if all steps were successful, non-zero otherwise. If any of the steps fail, a diagnostic message is printed.
logsrv(8), incrmesg(8)