Linux and UNIX systems: Configuring the syslog daemon

On Linux and UNIX systems, all WebSphere Business Integration Message Broker messages (other than those generated by the command line utilities) are sent to the syslog, so it is useful to redirect user messages to a separate file.

Before you create a broker on Linux or UNIX systems, configure the syslog daemon to redirect user messages to a file called user.log:

  1. Log on as root.
  2. Enter the following commands to create a file called user.log.
    Start of changeOn UNIX systems, enter the command:
    touch /var/adm/user.log 
    chown root:mqbrkrs /var/adm/user.log 
    chmod 640 /var/adm/user.log
    End of change
    Start of changeOn Linux, enter the command:
    touch /var/log/user.log 
    chown root:mqbrkrs /var/log/user.log 
    chmod 640 /var/log/user.log
    End of change
  3. Add the following line to the /etc/syslog.conf file to redirect debug level messages to the file user.log:
    Start of changeOn UNIX systems, enter the command:
    user.info /var/adm/user.log
    End of change
    Start of changeOn Linux, enter the command:
    user.info /var/log/user.log
    End of change
    Start of changeYou can use user.* - instead of user info in the preceding examples.
    • * means that information, notice, warning, and debug messages are caught
    • - means that syslog does not synchronize the file after writing to it.
    There is a performance gain, although you might lose some data if the machine crashes immediately after it has written to the file.End of change
    You can add similar lines to direct information, warning, and error messages to user.log.
  4. Restart the syslog daemon.
    On AIX, enter the command:
    refresh -s syslogd
    On HP-UX and Solaris, enter the command:
    kill -HUP 'cat /etc/syslog.pid'
    Start of changeOn Linux, enter the command:
    /etc/init.d/syslogd restart
    or
    /etc/rc.d/init.d/syslogd restart
    for systems where rc.d is not a soft linkEnd of change

For other syslog options, see the documentation for your operating system.

Related concepts
Logs
Related tasks
Troubleshooting and support
Using logs
Windows: Viewing the local error log
Related reference
Local error logs