WebSphere Message Brokers
File: an04230_
Writer: Bill Oppenheimer

Task topic

This build: July 31, 2007 21:33:13

Linux and UNIX systems: Configuring the syslog daemon

UNIX platform On Linux and UNIX systems, all WebSphere 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.
    On UNIX systems, enter the command:
    touch /var/adm/user.log 
    chown root:mqbrkrs /var/adm/user.log 
    chmod 640 /var/adm/user.log
    On Linux, enter the command:
    touch /var/log/user.log 
    chown root:mqbrkrs /var/log/user.log 
    chmod 640 /var/log/user.log
  3. Add the following line to the /etc/syslog.conf file to redirect debug level messages to the file user.log:
    On UNIX systems, enter the command:
    user.info /var/adm/user.log
    On Linux, enter the command:
    user.info /var/log/user.log
    You 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.
    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'
    On 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 link

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
Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2007Copyright IBM Corporation 1999, 2007. All Rights Reserved.
This build: July 31, 2007 21:33:14

an04230_ This topic's URL is: