This Oracle Solaris release includes the option of installing and using the rsyslogd package for managing system logging. rsyslogd is derived from the syslogd daemon implementation, with a modular design that supports several features such as filtering, TCP, encryption, and high-precision time stamps, as well as output control.
The syslog SMF service, svc:/system/system-log:default, continues to be the default logging service. To use the rsyslog service, you need to install the rsyslog package and enable the rsyslogd service.
root@pcclone: ~$ pkg info rsyslog pkg: info: no packages matching the following patterns you specified are installed on the system. Try specifying -r to query remotely: rsyslog
root@pcclone:~$ pkg install rsyslog Packages to install: 3 Services to change: 1 Create boot environment: No Create backup boot environment: No DOWNLOAD PKGS FILES XFER (MB) SPEED Completed 3/3 68/68 1.7/1.7 354k/s PHASE ITEMS Installing new actions 147/147 Updating package state database Done Updating package cache 0/0 Updating image state Done Creating fast lookup database Done
root@pcclone:~$ svcs -a | grep "system-log" disabled 18:27:16 svc:/system/system-log:rsyslog online 18:27:21 svc:/system/system-log:default
This output confirms that the rsyslog instance exists but disabled.
root@pcclone:~$ svcadm disable svc:/system/system-log:default root@pcclone:~$ svcadm enable svc:/system/system-log:rsyslog root@pcclone:~$ svcs -xv
These commands disable the default service, enable rsyslog, and report on status.
Next Steps
After rsyslog is installed and enabled, you can configure syslog in the /etc/rsyslog.conf file. For more information, see the rsyslogd(8) man page.