Controlling syslog messages

By default, Sybase IQ logs messages to the “user” syslog facility on UNIX. On most UNIX systems, the user syslog facility is not logged, however, on HP-UX systems, the default syslog configuration places the messages sent to the user facility in the syslog files. As a result, these files may fill up, causing the file system on which they reside to become full.

You can solve this problem in either of two ways:

1. Turn off the user facility in syslog.conf, or

2. Use the -s IQ server switch to redirect the server's syslog output to a different facility, and turn off that different facility.

Method 1:

The following example shows how you might edit the syslog.conf file on an HP-UX system.

Original syslog.conf file

# @(#) $Revision: 74.1 $
# syslogd configuration file.
#
# See syslogd(1M) for information about the format of this file.
#
mail.debug 	 /var/adm/syslog/mail.log
*.info;mail.none 	 /var/adm/syslog/syslog.log
*.alert 	 /dev/console
*.alert 	 root
*.emerg 	 *

syslog.conf file after modification

	# @(#) $Revision: 74.1 $
#
# syslogd configuration file.
#
# See syslogd(1M) for information about the format of this file.
#
mail.debug 	 /var/adm/syslog/mail.log
*.info;mail.none;user.none 	 /var/adm/syslog/syslog.log
*.alert;user.none 	 /dev/console
*.alert;user.none 	 root
*.emerg;user.none 	 *

See UNIX man pages syslogd(1) and syslog(1) for more information.