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>
29 .TH SYSLOGD 8 "Jan. 23, 2000"
32 syslogd \- system logging daemon.
50 System logging is provided by a version of
55 provides the kind of logging that many modern programs use. Every logged
56 message contains at least a time, a hostname field and a
57 program name field, but that depends on how trusty the logging
60 While the syslogd sources have been heavily modified a couple of notes
61 are necessary. First of all there has been a systematic attempt to
62 insure that syslogd follows the default, standard BSD behavior.
63 The second important concept to note is that this version of syslogd
64 interacts transparently with the version of syslog found in the
65 standard libraries, so you must insure that the correct versions are installed.
67 The main configuration file
69 or an alternative file, given with the
71 option, is read at startup. Any line that begins with the hash mark
72 (``#'') and empty lines are ignored. If an error occurs during parsing
73 the whole line is ignored.
76 .LB 9 "-d" "Turns on debug mode.
77 When using debug mode, the daemon will not proceed to
79 to set itself in the background, but will stay in the
80 foreground and write much debug information on the current tty. See the
81 DEBUGGING section for more information.
82 .LB 9 "\-f config file" "Specify an alternative configuration file instead of
83 .IR /etc/syslog.conf ","
85 .LB 9 "\-m interval" "The syslogd logs a mark timestamp regularly. The default
89 lines is 20 minutes. This can be changed with this option.
90 .LB 9 "\-p port" "You can specify an alternative port instead of
93 .LB 9 "\-v" "Print version and exit.
97 reacts to a set of signals. You may easily send a signal to it
100 kill -SIGNAL `cat /usr/run/syslogd.pid`
101 .LB 9 SIGHUP "This lets syslogd perform a re-initialization.
102 All open files are closed, the configuration file (default
103 is '/etc/syslog.conf') will be reread.
104 .LB 9 SIGTERM "The syslogd will die.
105 .LB 9 "SIGINT SIGQUIT" "If debugging is enabled these are ignored, otherwise
107 .LB 9 SIGALRM "Every time syslogd receives this signal it will log
108 the mark line. Normally this is done by
110 .SH CONFIGURATION FILE SYNTAX DIFFERENCES
113 uses a slightly different syntax for its configuration file than
114 the original BSD sources. Originally all messages of a specific priority
115 and above were forwarded to the log file.
117 For example see the following sample file
119 ## Sample syslog.conf
121 ## Emergency messages (system may be unusable)
127 ## High severity errors
129 *.alert;*.crit /usr/adm/syslog
131 ## every other message (errors/warning and informational)
133 *.info;*.notice;*.warning;*.err /usr/adm/messages
135 *.debug /usr/adm/debug
137 .SH SUPPORT FOR REMOTE LOGGING
140 .SH OUTPUT TO NAMED PIPES (FIFOs)
143 .SH INSTALLATION CONCERNS
145 There is probably one important consideration when installing this
146 version of syslogd. This version of syslogd is dependent on proper
147 formatting of messages by the syslog function.
150 should be started by the rc sequence.
153 When debugging is turned on using
155 option and syslogd is compiled with debug=1 then syslogd
156 will be very verbose by writing much of what it does on stdout.
158 the configuration file is reread and re-parsed you'll see a tabular,
159 corresponding to the internal data structure. This tabular consists of
163 This field contains a serial number starting by zero. This number
164 represents the position in the internal data structure (i.e. the
165 array). If one number is left out then there might be an error in the
166 corresponding line in
167 .IR /etc/syslog.conf .
170 This field is tricky and represents the internal structure
171 exactly. Every column stands for a facility (refer to
173 As you can see, there are still some facilities left free for former
174 use, only the left most are used. Every field in a column represents
175 the priorities (refer to
179 This field describes the particular action that takes place whenever a
180 message is received that matches the pattern. Refer to the
182 manpage for all possible actions.
185 This field shows additional arguments to the actions in the last
186 field. For file-logging this is the filename for the logfile; for
187 user-logging this is a list of users; for remote logging this is the
188 hostname of the machine to log to; for console-logging this is the
189 used console; for tty-logging this is the specified tty; wall has no
190 additional arguments.
192 Note that if syslogd is compiled with debug=0 only a subset is printed.
195 .LR 28 /etc/syslog.conf "Configuration file for syslogd. See
197 for exact information.
198 .LR 28 /dev/log "The log device (console) for Minix.
199 .LR 28 /usr/run/syslogd.pid "The file containing the process id of syslogd.
202 If an error occurs in one line the whole rule is ignored.
204 doesn't change the filemode of opened logfiles at any stage of
205 process. If a file is created it is world readable. If you want to
206 avoid this, you have to create it and change permissions on your own.
211 .\" .BR services (5),