]> git.ipfire.org Git - people/ummeegge/ipfire-2.x.git/commit
Rsyslog: New advanced Syslogger rsyslog
authorErik Kapfer <erik.kapfer@ipfire.org>
Thu, 21 Jun 2018 10:03:32 +0000 (12:03 +0200)
committerErik Kapfer <erik.kapfer@ipfire.org>
Thu, 21 Jun 2018 10:03:32 +0000 (12:03 +0200)
commit74ac4b1e8a5615b487df13aba029492110ecf6d1
tree030df145b36d25170fafef371bc6a8d979704ac4
parentbc91a66281193d7fca60858e5efed5ec73ad9fe0
Rsyslog: New advanced Syslogger

Sysklogd and Klogd are replaced by Rsyslogd.
Version includes libestr libfastjson and liblogging.

Rsyslog configuration:
    Two modules are used 'imuxsock' and 'imklog' which is the minimum to get the old sysklod ouput.
    Works in 'RSYSLOG_TraditionalFileFormat' which equals to the log output of the old sysklogd.
    A work directory will be included to /var/spool/rsyslog.
    Additional user configuration directory under /etc/rsyslog.d has been introduced too.
    One old sysklogd directive needed to be changed whereby ':omusrmsg:*' for emergency messages has been set (all old sysklogd configuration directives could be used in new config).
    Since Rsyslog drops his privileges (to already existing user 'syslogd'), syslogd user is now member of group tty (/etc/group), group dialout has also been tested but have had partly problems and didnĀ“t logged persistently.
    logrotate.conf has been adapted to Rsyslog, -HUP will be send before restart so all files should be closed before rotation.

Rsyslog initscript:
    Checks if user syslogd is part of tty group otherwise a usermod includes 'syslogd' to 'tty' (needed to be done to drop the privileges).
    Bootlog lines from sysklogd has been integrated.

syslogctrl:
    Remote logging configuration is located under /etc/rsyslog.conf and works with UDP (@) and TCP (@@).
    Rsyslog restart will be executed after configuration has been saved via logs.cgi/config.dat.

Other files/changes:
    User 'klogd' has been deleted from passwd.
    rsyslogd default.conf for 'logwatch' has been activated.
    services.cgi has been adapted to rsyslog as logging and kernel logging server and a link has also been set to related logs.cgi/config.dat.
    firstsetup has been adapted to rsyslog.

Signed-off-by: Erik Kapfer <erik.kapfer@ipfire.org>
26 files changed:
config/etc/group
config/etc/logrotate.conf
config/etc/rsyslog.conf [new file with mode: 0644]
config/etc/syslog.conf [deleted file]
config/rootfiles/common/armv5tel/initscripts
config/rootfiles/common/i586/initscripts
config/rootfiles/common/libestr [new file with mode: 0644]
config/rootfiles/common/libfastjson [new file with mode: 0644]
config/rootfiles/common/liblogging [new file with mode: 0644]
config/rootfiles/common/logwatch
config/rootfiles/common/rsyslog [new file with mode: 0644]
config/rootfiles/common/stage2
config/rootfiles/common/sysklogd [deleted file]
config/rootfiles/common/x86_64/initscripts
config/rootfiles/common/x86_64/stage2
html/cgi-bin/services.cgi
lfs/initscripts
lfs/libestr [new file with mode: 0644]
lfs/libfastjson [new file with mode: 0644]
lfs/liblogging [new file with mode: 0644]
lfs/rsyslog [new file with mode: 0644]
make.sh
src/initscripts/system/firstsetup
src/initscripts/system/rsyslog [new file with mode: 0644]
src/initscripts/system/sysklogd [deleted file]
src/misc-progs/syslogdctrl.c