Update syslog.conf man page with log formatting options and example
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
parent
65ac085a97
commit
0fd87623d5
@ -63,13 +63,30 @@ specified action. The
|
|||||||
.Em action
|
.Em action
|
||||||
details where or what to do with the selected input. The
|
details where or what to do with the selected input. The
|
||||||
.Em option
|
.Em option
|
||||||
field currently supports log formattaing and log rotation. The default
|
field, which must start with the semi-colon option delimiter (';'),
|
||||||
log format is the traditional RFC3164 (included here for completeness),
|
currently supports log formattaing and log rotation. The default log
|
||||||
RFC5424 has a new format with RFC3339 time stamps, msgid, structured
|
format is the traditional RFC3164 (included here for completeness),
|
||||||
data, and more. The log rotation, which is only relevant for files,
|
.Sy except
|
||||||
details the max SIZE:COUNT a file can reach before it is rotated, and
|
for remote syslog targets where the BSD format (without both timestamp
|
||||||
later compressed. This feature is mostly intended for embedded systems
|
and hostname) is the default. The user must excplicitly set RFC3164 on
|
||||||
that do not want to have cron or a separate log rotate daemon.
|
a remote logging target. RFC5424 is the newest format with RFC3339 time
|
||||||
|
stamps, msgid, structured data, and more. The BSD format cannot be set,
|
||||||
|
it is only the default for remote targets for compatibility reasons.
|
||||||
|
.Pp
|
||||||
|
.Bl -tag -compact -width "RFC3164:"
|
||||||
|
.It BSD:
|
||||||
|
.Cm myproc[8710]: Kilroy was here.
|
||||||
|
.It RFC3164:
|
||||||
|
.Cm Aug 24 05:14:15 192.0.2.1 myproc[8710]: Kilroy was here.
|
||||||
|
.It RFC5424:
|
||||||
|
.Cm 2003-08-24T05:14:15.000003-07:00 192.0.2.1 myproc 8710 - - Kilroy was here.
|
||||||
|
.El
|
||||||
|
.Pp
|
||||||
|
The log rotation, which is only relevant for files, details the max
|
||||||
|
.Ar SIZE:COUNT
|
||||||
|
a file can reach before it is rotated, and later compressed. This
|
||||||
|
feature is mostly intended for embedded systems that do not want to have
|
||||||
|
cron or a separate log rotate daemon.
|
||||||
.Pp
|
.Pp
|
||||||
Comments, lines starting with a hash mark ('#'), and empty lines are
|
Comments, lines starting with a hash mark ('#'), and empty lines are
|
||||||
ignored. If an error occurs during parsing the whole line is ignored.
|
ignored. If an error occurs during parsing the whole line is ignored.
|
||||||
|
Loading…
Reference in New Issue
Block a user