Installation guide

Destination Description
Full pathname Appends messages to the specified file. You
should direct each facility’s messages to
separate files (for example: kern.log,
mail.log,orlpr.log).
Host name preceded by an at sign
(@)
Forwards messages to the syslogd daemon
on the specified host.
List of users separated by commas Writes messages to the specified users if they
are logged in.
*
Writes messages to all the users who are
logged in.
You can specify in the /etc/syslog.conf file that the syslogd daemon
create daily log files. To create daily log files, use the following syntax to
specify the pathname of the message destination:
/var/adm/syslog.dated/
{ file}
The
file
variable specifies the name of the log file, for example, mail.log
or kern.log.
If you specify a /var/adm/syslog.dated/
file
pathname destination,
each day the syslogd daemon creates a subdirectory under the
/var/adm/syslog.dated directory and a log file in the subdirectory by
using the following syntax:
/var/adm/syslog.dated/ date / file
The
date
variable specifies the day, month, and time that the log file was
created.
The
file
variable specifies the name of the log file you previously specified
in the /etc/syslog.conf file.
The syslogd daemon automatically creates a new
date
directory every 24
hours and also when you boot the system.
For example, to create a daily log file of all mail messages of level info or
higher, edit the /etc/syslog.conf file and specify an entry similar to the
following:
mail.info /var/adm/syslog.dated/mail.log
If you specify the previous command, the syslogd daemon could create the
following daily directory and file:
/var/adm/syslog.dated/11-Jan-12:10/mail.log
13–6 Administering Events and Errors