45 lines
1.2 KiB
Plaintext
Executable file
45 lines
1.2 KiB
Plaintext
Executable file
#############################################################################
|
|
# Default syslog-ng.conf file which collects all local logs into a
|
|
# single file called /var/log/messages tailored to container usage.
|
|
#
|
|
# The changes from the stock, default syslog-ng.conf file is that we've
|
|
# dropped the system() source that is not needed and that we enabled network
|
|
# connections using default-network-drivers(). Customize as needed and
|
|
# override using the -v option to docker, such as:
|
|
#
|
|
# docker run ... -v "$PWD/syslog-ng.conf":/etc/syslog-ng/syslog-ng.conf
|
|
#
|
|
|
|
@version: 3.30
|
|
@include "scl.conf"
|
|
|
|
source s_local {
|
|
internal();
|
|
};
|
|
|
|
source s_network {
|
|
syslog(transport("udp"));
|
|
};
|
|
|
|
#source s_network {
|
|
# default-network-drivers(
|
|
# NOTE: TLS support
|
|
#
|
|
# the default-network-drivers() source driver opens the TLS
|
|
# enabled ports as well, however without an actual key/cert
|
|
# pair they will not operate and syslog-ng would display a
|
|
# warning at startup.
|
|
#
|
|
# tls(
|
|
# key-file("/etc/syslog-ng/certs/serverkey.pem")
|
|
# cert-file("/etc/syslog-ng/certs/servercert.pem")
|
|
# )
|
|
# );
|
|
#};
|
|
|
|
###
|
|
# Include all config files in /etc/syslog-ng/conf.d/
|
|
###
|
|
@include "/etc/syslog-ng/conf.d/*.conf"
|
|
|