HP-UX Internet Services Administrator's Guide (May 2010)

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
to 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.
Maintaining 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.
Configuring inetd Connection Logging
The inetd daemon logs 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 invoke it:
/usr/sbin/inetd -l
If inetd is running with connection logging turned on, the same command turns it
off. For more information, type man 1M inetd at the HP-UX prompt.
Configuring ftpd Session Logging
To configure ftpd to log messages about an ftp session, including commands, logins,
login failures, and anonymous ftp activity, complete the following steps:
1. Add the -l option to the ftp line in the /etc/inetd.conf file, as in the following
example:
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l
2. Issue the following command to force inetd to read its configuration file:
Configuring the Internet Services Software 35