The socklog-inet service listens on the UDP port 0.0.0.0:514. Usually this service replaces syslogd's support for remote logging.
The socklog-klog service reads kernel messages from /proc/kmsg on Linux or /dev/klog on BSD. Usually this service replaces klogd on Linux or syslogd on BSD.
The socklog-ucspi-tcp service listens on the TCP port 0.0.0.0:10116, this is a server for socklog network logging, a different remote logging concept.
The socklog-notify handles log event notification, scheduled notification of specified log entries.
# socklog-conf unix nobody logIf you are replacing another service providing system logging through the socket /dev/log, such as syslogd, stop this service now and ensure that it will not be restarted on runlevel change or system reboot.
Tell svscan about the new service:
# ln -s /etc/socklog/unix /service/socklog-unixWait five seconds for the service to start and then check the log directories, e.g.:
# less /var/log/socklog/main/currentOptionally configure the socklog-unix service by editing the corresponding run scripts:
Create a service directory /etc/socklog/ucspi-unix with a subdirectory log and the correspnding run scripts:
#!/bin/sh exec 2>&1 exec unixserver -U `id -u nobody` /dev/log -- \ socklog ucspi UNIXREMOTEEUID UNIXREMOTEEGID
#!/bin/sh LOGDIR=/var/log/socklog exec setuidgid log multilog ${LOGDIR}/main \ -* +'*: *: kern.*' ${LOGDIR}/kern \ -* +'*: *: user.*' ${LOGDIR}/user \ -* +'*: *: mail.*' ${LOGDIR}/mail \ -* +'*: *: daemon.*' ${LOGDIR}/daemon \ -* +'*: *: auth.*' +authpriv.* ${LOGDIR}/auth \ -* +'*: *: syslog.*' ${LOGDIR}/syslog \ -* +'*: *: news.*' ${LOGDIR}/news \ -* +'*: *: cron.*' ${LOGDIR}/cron \ -* +'*: *: ftp.*' ${LOGDIR}/ftp \ -* +'*: *: local*.*' ${LOGDIR}/local \ -* +'*: *: *.debug*' ${LOGDIR}/debug
# cd /service/socklog-unix # rm /service/socklog-unix # svc -dx . logCheck carefully that all log directories you stated in /etc/socklog/ucspi-unix/log/run exist and are writable to the corresponding user.
Then link the socklog-ucspi-unix service directory to svscan's service directory:
# ln -s /etc/socklog/ucspi-unix /service/socklog-ucspi-unixWait five seconds for the service to start and then check the log directories.
# socklog-conf inet nobody logIf you are replacing another service providing system logging through the syslog UDP port 514, such as syslogd, stop this service now and ensure that it will not be restarted on runlevel change or system reboot.
Tell svscan about the new service:
# ln -s /etc/socklog/inet /service/socklog-inetWait five seconds for the service to start and then check the log directory:
# less /var/log/socklog-inet/main/currentOptionally configure the socklog-inet service by editing the corresponding run scripts:
# socklog-conf klog nobody logIf you are replacing another service providing kernel logging, such as klogd on Linux or syslogd on BSD, stop this service now and ensure that it will not be restarted on runlevel change or system reboot.
Tell svscan about the new service:
# ln -s /etc/socklog/klog /service/socklog-klogWait five seconds for the service to start and then check the log directory:
# less /var/log/socklog-klog/main/currentOptionally configure the socklog-klog service by editing the corresponding run scripts:
# socklog-conf ucspi-tcp nobody logTell svscan about the new service:
# ln -s /etc/socklog/ucspi-tcp /service/socklog-ucspi-tcpWait five seconds for the service to start and then check the log directory:
# less /var/log/socklog-ucspi-tcp/main/currentOptionally configure the socklog-ucspi-tcp service by editing the corresponding run scripts:
# socklog-conf notify log admTell svscan about the new service:
# ln -s /etc/socklog/notify /service/socklog-notifyWait five seconds for the service to start, you can test the service with:
# echo test | tai64n > /var/log/socklog/.notifyOptionally configure the socklog-notify service by editing the corresponding run script: