]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add newsyslog capability to write RFC5424 compliant rotation message.
authorDavid Bright <dab@FreeBSD.org>
Fri, 26 May 2017 16:36:30 +0000 (16:36 +0000)
committerDavid Bright <dab@FreeBSD.org>
Fri, 26 May 2017 16:36:30 +0000 (16:36 +0000)
commitb326fec486bf8f8c81b7c01cbdc439cee21ad4e1
treebb10667f17265e8658ad451545bfc271d197968b
parentb47efe07c40bd945b18f0c22b8e4874fc19ac43a
Add newsyslog capability to write RFC5424 compliant rotation message.

This modification adds the capability to newsyslog to write the
rotation message in a format that is compliant with RFC5424. This
capability is enabled on a per-log file basis through a new value
("T") in the flags field in newsyslog.conf. This is useful on systems
that use the RFC5424 format for log files so that the rotation message
format matches that of the other log messages. There has been recent
mention of adding an RFC5424 compliant mode to syslogd and at least
one alternative system log daemon (rsyslogd) that already has the
capability to use that format.

Reviewed by: vangyzen, ngie
Approved by: vangyzen (mentor)
MFC after: 2 months
Relnotes: yes
Sponsored by: Dell EMC
Differential Revision: https://reviews.freebsd.org/D10253
usr.sbin/newsyslog/extern.h
usr.sbin/newsyslog/newsyslog.8
usr.sbin/newsyslog/newsyslog.c
usr.sbin/newsyslog/newsyslog.conf.5
usr.sbin/newsyslog/ptimes.c
usr.sbin/newsyslog/tests/legacy_test.sh