Controlling Syslog Messages

Controlling the user syslog message can save disk space.

By default, SAP Sybase IQ logs messages to the user syslog facility on UNIX. On most UNIX-like operating 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:

Method 1:

This 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.

Related concepts
Tuning Memory Allocation