- a sample socklog-unix/run script:
#!/bin/sh
exec 2>&1
exec softlimit -m 2000000 envuidgid nobody socklog unix /dev/log
- a sample socklog-unix/log/run script:
#!/bin/sh
LOGDIR=/var/log/socklog
exec setuidgid log multilog ${LOGDIR}/main \
s999999 n10 -* +kern.* ${LOGDIR}/kern \
s999999 n10 -* +user.* ${LOGDIR}/user \
s999999 n10 -* +mail.* ${LOGDIR}/mail \
s999999 n10 -* +daemon.* ${LOGDIR}/daemon \
s999999 n10 -* +auth.* +authpriv.* ${LOGDIR}/auth \
s999999 n10 -* +syslog.* ${LOGDIR}/syslog \
s999999 n10 -* +news.* ${LOGDIR}/news \
s999999 n10 -* +cron.* ${LOGDIR}/cron \
s999999 n10 -* +ftp.* ${LOGDIR}/ftp \
s999999 n10 -* +local*.* ${LOGDIR}/local \
s999999 n10 -* +*.debug* ${LOGDIR}/debug
- if you want additional
tai64n
(# man tai64n) timestamps prepended to each message, use this
socklog-unix/log/run script as example:
#!/bin/sh
LOGDIR=/var/log/socklog
exec setuidgid log multilog t ${LOGDIR}/main \
s999999 n10 -* +'* kern.*' ${LOGDIR}/kern \
s999999 n10 -* +'* user.*' ${LOGDIR}/user \
s999999 n10 -* +'* mail.*' ${LOGDIR}/mail \
s999999 n10 -* +'* daemon.*' ${LOGDIR}/daemon \
s999999 n10 -* +'* auth.*' +authpriv.* ${LOGDIR}/auth \
s999999 n10 -* +'* syslog.*' ${LOGDIR}/syslog \
s999999 n10 -* +'* news.*' ${LOGDIR}/news \
s999999 n10 -* +'* cron.*' ${LOGDIR}/cron \
s999999 n10 -* +'* ftp.*' ${LOGDIR}/ftp \
s999999 n10 -* +'* local*.*' ${LOGDIR}/local \
s999999 n10 -* +'* *.debug*' ${LOGDIR}/debug
note that
multilog
(# man multilog) patterns apply to the timestamps.