You can use DSCC to perform this task. For information, see Directory Service Control Center Interface and the DSCC online help.
Select the alerts that will be sent to the syslog daemon, as described in To Enable Administrative Alerts.
Enable alerts to be sent to the syslog daemon.
$ dpconf set-server-prop -h host -p port syslog-alerts-enabled:true |
All alerts are sent to the syslog with the facility of USER.
Set the host name of the syslog daemon to which alerts are to be sent.
$ dpconf set-server-prop -h host -p port syslog_hostname:hostname |