1 .\" Copyright 1994 Dr. Greg Wettstein, Enjellic Systems Development.
2 .\" May be distributed under the GNU General Public License
3 .\" Sun Aug 30 11:35:55 MET: Martin Schulze: Updates
5 .\" from SYSKLOGD 8 "13 December 1995" "Version 1.3" "Linux System Administration"
6 .\" Modified for Minix porting by G. Falzoni <gfalzoni@inwind.it>
28 .TH SYSLOGD 8 "Jan. 23, 2000"
31 syslogd \- system logging daemon.
49 System logging is provided by a version of
54 provides the kind of logging that many modern programs use. Every logged
55 message contains at least a time, a hostname field and a
56 program name field, but that depends on how trusty the logging
59 While the syslogd sources have been heavily modified a couple of notes
60 are necessary. First of all there has been a systematic attempt to
61 insure that syslogd follows the default, standard BSD behavior.
62 The second important concept to note is that this version of syslogd
63 interacts transparently with the version of syslog found in the
64 standard libraries, so you must insure that the correct versions are installed.
66 The main configuration file
68 or an alternative file, given with the
70 option, is read at startup. Any line that begins with the hash mark
71 (``#'') and empty lines are ignored. If an error occurs during parsing
72 the whole line is ignored.
75 .LB 9 "-d" "Turns on debug mode.
76 When using debug mode, the daemon will not proceed to
78 to set itself in the background, but will stay in the
79 foreground and write much debug information on the current tty. See the
80 DEBUGGING section for more information.
81 .LB 9 "\-f config file" "Specify an alternative configuration file instead of
82 .IR /etc/syslog.conf ","
84 .LB 9 "\-m interval" "The syslogd logs a mark timestamp regularly. The default
88 lines is 20 minutes. This can be changed with this option.
89 .LB 9 "\-p port" "You can specify an alternative port instead of
92 .LB 9 "\-v" "Print version and exit.
96 reacts to a set of signals. You may easily send a signal to it
99 kill -SIGNAL `cat /usr/run/syslogd.pid`
100 .LB 9 SIGHUP "This lets syslogd perform a re-initialization.
101 All open files are closed, the configuration file (default
102 is '/etc/syslog.conf') will be reread.
103 .LB 9 SIGTERM "The syslogd will die.
104 .LB 9 "SIGINT SIGQUIT" "If debugging is enabled these are ignored, otherwise
106 .LB 9 SIGALRM "Every time syslogd receives this signal it will log
107 the mark line. Normally this is done by
109 .SH CONFIGURATION FILE SYNTAX DIFFERENCES
112 uses a slightly different syntax for its configuration file than
113 the original BSD sources. Originally all messages of a specific priority
114 and above were forwarded to the log file.
116 For example see the following sample file
118 ## Sample syslog.conf
120 ## Emergency messages (system may be unusable)
126 ## High severity errors
128 *.alert;*.crit /usr/adm/syslog
130 ## every other message (errors/warning and informational)
132 *.info;*.notice;*.warning;*.err /usr/adm/messages
134 *.debug /usr/adm/debug
136 .SH SUPPORT FOR REMOTE LOGGING
139 .SH OUTPUT TO NAMED PIPES (FIFOs)
142 .SH INSTALLATION CONCERNS
144 There is probably one important consideration when installing this
145 version of syslogd. This version of syslogd is dependent on proper
146 formatting of messages by the syslog function.
149 should be started by the rc sequence.
152 When debugging is turned on using
154 option and syslogd is compiled with debug=1 then syslogd
155 will be very verbose by writing much of what it does on stdout.
157 the configuration file is reread and re-parsed you'll see a tabular,
158 corresponding to the internal data structure. This tabular consists of
162 This field contains a serial number starting by zero. This number
163 represents the position in the internal data structure (i.e. the
164 array). If one number is left out then there might be an error in the
165 corresponding line in
166 .IR /etc/syslog.conf .
169 This field is tricky and represents the internal structure
170 exactly. Every column stands for a facility (refer to
172 As you can see, there are still some facilities left free for former
173 use, only the left most are used. Every field in a column represents
174 the priorities (refer to
178 This field describes the particular action that takes place whenever a
179 message is received that matches the pattern. Refer to the
181 manpage for all possible actions.
184 This field shows additional arguments to the actions in the last
185 field. For file-logging this is the filename for the logfile; for
186 user-logging this is a list of users; for remote logging this is the
187 hostname of the machine to log to; for console-logging this is the
188 used console; for tty-logging this is the specified tty; wall has no
189 additional arguments.
191 Note that if syslogd is compiled with debug=0 only a subset is printed.
194 .LR 28 /etc/syslog.conf "Configuration file for syslogd. See
196 for exact information.
197 .LR 28 /dev/log "The log device (console) for Minix.
198 .LR 28 /usr/run/syslogd.pid "The file containing the process id of syslogd.
201 If an error occurs in one line the whole rule is ignored.
203 doesn't change the filemode of opened logfiles at any stage of
204 process. If a file is created it is world readable. If you want to
205 avoid this, you have to create it and change permissions on your own.
210 .\" .BR services (5),