syslogd(1M)syslogd(1M)NAMEsyslogd - log system messages
SYNOPSIS
configfile] markinterval] logfile]
DESCRIPTION
The command reads and logs messages into a set of files described by
the configuration file
Options
recognizes the following options:
Allows all messages except consecutive duplicate messages with‐
out
reordering them.
Turn on debugging.
Prevent the kernel from directly printing its messages on the
system console.
In this case, is responsible for routing all
kernel messages to their proper destination.
Use configfile instead of
Wait markinterval minutes between mark messages,
instead of 20 minutes.
Don't listen to socket.
Use logfile instead of
Don't suppress duplicate messages.
While logging the messages coming from remote system, IP address
will be
logged instead of the hostname.
Add priority and facility encoded code at the second field of
the message line.
Refer to syslog(3C) manpage for these prior‐
ity and facility encoding codes.
creates the file if possible, containing a single line with its process
ID. This can be used to kill or reconfigure
To kill send it a terminate signal:
To make re-read its configuration file, send it a signal:
collects messages from the UNIX domain socket an Internet domain socket
specified in the named pipe and from the kernel log device By default,
local programs calling send log messages to the UNIX domain socket (see
syslog(3C)). If UNIX domain sockets are not configured on the system,
they write to the named pipe instead. If INET domain sockets are not
configured, does not receive messages forwarded from other hosts, nor
does it forward messages (see below).
Each message is one line. A message can contain a priority code and
facility code as the second field of the line. Priorities and Facili‐
ties are defined in the header file
When is invoked using script, user can update the required options in
file. By default contains option. Before starting the command, the
script recreates after putting the contents into the file By default,
is overwritten by the contents of If you want to retain the contents of
the previous file, configure in You can set the parameter to the number
of lines (in thousands) to be retained from the previous file. For
example, to retain 20,000 lines from the previous file along with the
contents of the previous in the present put in By default is set to 0.
configures itself when it starts up and whenever it receives a hangup
signal. Lines in the configuration file consist of a to determine the
message priorities to which the line applies and an The action field is
separated from the selector by one or more tabs.
Selectors are semicolon separated lists of priority specifiers. Each
priority has a indicating the subsystem that generated the message, a
dot, and a indicating the severity of the message. Symbolic names can
be used. An asterisk selects all facilities. All messages of the
specified level or higher (greater severity) are selected. More than
one facility can be selected, using commas to separate them. For exam‐
ple:
selects all facilities at the level and the and facilities at the
level.
The known facilities and levels recognized by are those listed in sys‐
log(3C) converted to lowercase without the leading The additional
facility has a message at priority sent to it every 20 minutes (this
can be changed with the flag). The facility is not enabled by a facil‐
ity field containing an asterisk. The level can be used to disable a
particular facility. For example,
selects all messages except messages.
The second part of each line describes where the message is to be
logged if this line is selected. There are four forms:
· A file name (beginning with a leading slash). The file is
opened in append mode. If the file does not exist, it is
created.
· A host name preceded by an character. Selected messages are
forwarded to the on the named host.
· A comma-separated list of users. Selected messages are writ‐
ten to those users' terminals if they are logged in.
· An asterisk. Selected messages are written to the terminals
of all logged-in users.
Blank lines and lines beginning with a character are ignored.
For example, the configuration file:
logs all kernel messages and 20 minute marks onto the system console,
all mail system messages to and all messages at and above, except mail
messages, to the file Messages at and above are logged to the console
and to the users and if they are logged in. messages are written to
all logged-in users' terminals, and forwarded to the host
Only a superuser can invoke
Notes
logs messages into a set of files. Once the size of a log file reaches
2 GB, stops logging to that file. You can configure the maximum size
of log files by setting the variable in The values of can be any posi‐
tive integer greater than 2, representing the maximum size of the file
in GB. When uses the limit imposed by the file system on file size.
logs messages in a locale-independent fashion as a stream of bytes and
will replace each newline character in the message with a blank space
except for the last newline character. Applications using the services
of can log messages in different locales. However, be careful when con‐
figuring so that messages from different locales do not get logged to
the same log file.
WARNINGS
A configuration file selector selects all messages at the specified
level The configuration lines:
cause the logfile to get copies of all messages at level and above.
Kernel panic messages are not sent to
All HP-UX kernel messages are treated as if they had the priority
level.
If is invoked with the option and terminates abnormally, kernel mes‐
sages will not appear on the system console. In that case, reinvoke
without the option to enable the kernel to send its messages to the
system console.
does not support logging to Therefore, if a named pipe is specified in
the configuration file, the behavior of is undefined, and may lose mes‐
sages if blocked or terminated on a
does not support long user and group names on the current release, HP-
UX 11i V3.
logs messages in a locale-independent fashion.
· assumes that ASCII control characters do not form intermedi‐
ate bytes of the characters of a multibyte locale.
· truncates the last character when the maximum length of the
message is reached, even though it is a valid multibyte char‐
acter.
AUTHOR
was developed by the University of California, Berkeley.
FILES
The kernel log device
The named pipe on which reads log messages
The UNIX domain socket on which reads log
messages
Configuration file
Configuration file for maximum log size
Process ID
SEE ALSOlogger(1), syslog(3C).
syslogd(1M)