Troubleshooting System Administration Issues in Oracle® Solaris 11.2

Exit Print View

Updated: September 2014
 
 

Installing and Enabling rsyslog

  1. You can check whether the rsyslog package is already installed on your system by trying to enable the service as follows:
    root@pcclone: ~# svcadm enable svc:/system/system-log:rsyslog

    If the rsyslog package is not installed, the following message displays:

    svcadm: Pattern 'svc:/system/system-log:rsyslog' doesn't match any instance.
  2. If the rsyslog package is not installed, install it.
    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
    
  3. Confirm that there is an instance of rsyslog.
    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 that it is disabled.

  4. Switch to the rsyslog service.
    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 /etc/rsyslog.conf.