§2019-07-27 alexlai@CYNAS
Arch syslog-ng
syslog-ng Wiki
syslog-ng Open Source Edition 3.16 - Administration Guide
syslog-ng is a syslog implementation which can take log messages from sources and forward them to destinations, based on powerful filter directives.
¶Overview
syslog-ng takes incoming log messages from defined 'sources' and forwards them to the appropriate destinations, based on powerful filter directives. In a typical simple set-up,
syslog-ng will read messages from three sources: * the default /dev/log device, where most logs are sent * syslog-ng "internal" log messages * /proc/kmsg kernel messages
Sources are defined using the "source" directive. These incoming messages are then filtered according to defined filters ("filter" keyword), i.e. according to originating program or log level, and sent to the appropriate "destination". Destinations include log files (e.g. /var/log/messages.log), printing messages on a console and remote servers. The pivotal function is log. This function defines which filters should be applied to a certain source, and where the resulting messages should be sent to.
¶Installation
$ sudo pacman -S syslog-ng
$ pacman -Ql syslog-ng
syslog-ng /etc/
syslog-ng /etc/default/
syslog-ng /etc/default/syslog-ng@default
syslog-ng /etc/logrotate.d/
syslog-ng /etc/logrotate.d/syslog-ng
syslog-ng /etc/syslog-ng/
syslog-ng /etc/syslog-ng/patterndb.d/
syslog-ng /etc/syslog-ng/scl.conf
syslog-ng /etc/syslog-ng/syslog-ng.conf
syslog-ng /usr/
syslog-ng /usr/bin/
syslog-ng /usr/bin/dqtool
syslog-ng /usr/bin/loggen
syslog-ng /usr/bin/pdbtool
syslog-ng /usr/bin/persist-tool
syslog-ng /usr/bin/syslog-ng
syslog-ng /usr/bin/syslog-ng-ctl
syslog-ng /usr/bin/syslog-ng-debun
syslog-ng /usr/bin/update-patterndb
.... more ....
$ pacman -Ql syslog-ng|grep service
syslog-ng /usr/include/syslog-ng/service-management.h
syslog-ng /usr/lib/systemd/system/syslog-ng@.service