network logging via djb’s multilog

Had this recipe stuck in an old email somewhere, hope this helps someone else

The attached run files are required for the server who captures logs and the client which will send the logging data request.

Server

#!/bin/sh export PATH=”/usr/local/bin:$PATH” setuidgid remoteloguser tcpserver ip-addr-of-server listen-port-on-server multilog ./log

Client

#!/bin/sh export PATH=”/usr/local/bin:$PATH” 4>&1 | tcpclient ipaddr-of-server listen-port-on-server 6<&0

Technorati Tags :

Leave a Reply