Installing and Administering Internet Services

Chapter 2 45
Installing and Configuring Internet Services
Configuring Logging for the Internet Services
mail.debug /var/adm/syslog/mail.log
*.info,mail.none /var/adm/syslog/syslog.log
*.alert *.alert /det/console root
*.emerg *
With this configuration, all mail log messages at the debug level or
higher are sent to /var/adm/syslog/mail.log. Log messages from
any facility at the information level or higher (but no mail messages)
are sent to /var/adm/syslog/syslog.log. Log messages from any
facility at the alert level or higher are sent to the console and any
terminal where the superuser is logged in. All messages at the
emergency level or higher are sent to all users on the system.
For more information about syslogd and its configuration file, type man
3C syslog or man 1M syslogd at the HP-UX prompt.
To Maintain System Log Files
The log files specified in your syslogd configuration can fill up your disk
if you do not monitor their size. To control the size of these files, do the
following:
1. Remove or rename your log files as in the following example:
cd /var/adm/syslog
mv mail.log mail.log.old
mv syslog.log sylog.log.old
2. Restart syslogd with the following commands:
cd /sbin/init.d
syslogd stop
syslogd start
When you reboot your system, each log file is moved to filename.old
automatically, and new log files are started.
To Configure inetd Connection Logging
The inetd daemon can log connection requests through syslogd. It logs
successful connections at the information level and unsuccessful
connection attempts at the notice level. By default, inetd starts up
with connection logging turned off.
If inetd is running with connection logging turned off, issue the
following command to start it:
/usr/sbin/inetd -l